Integration of dreamweaver and php - php

Its my first project with PHP, I am still learning phase. Designer is working on dreamweaver to design the web site. As I developer I only understand code and feel comfortable with working on eclipse.
How can we integrate the project, that we both are looking at the same file but with different software/IDE.
Secondly , I will be using XAMPP for Windows but I am confused how the designer will use apache.
All I am looking for what to tools and practices are used when Dev's are working eclipse and designer are working Dreamweaver ?

you should keep you code separated from the html in different files. have you looked into mvc architecture?
if you use an mvc architecture or similar separation of html and php source files, you guys should never really be working on the same files anyways.
if you choose not to, set up an svn (subversion) server so that you guys can work on your project independently of one another but stay in sync. it shouldn't matter what ide anyone uses. dreamweaver has functionality to use subversion for source control, test and production server setup for easy sets/gets. you basically set it up the same as an ftp.

Related

How can I tell if a project is done with a PHP framework?

I am working on a project (already started), but I do not know if it is done with framework since there are files in many different folders, but I do not see any syntax referring to some framework that I know of.
I hope someone can help me...
Well it would depend on the Folder Hierarchies and the code.
If the views folder has the term "blade" on it, it's definitely laravel.
If the the code of the library has the term "CI Controller" somewhere in the libraries its definitely CodeIgniter.
If the code has a lot of "wp-" string in its code, its definitely Wordpress.
TIP: Put the whole folder in Sublime, search the folder (right click the folder and choose "Find in folder...") and search for terms that are generally reserved words for mostly used frameworks.
There are different methods to identify the PHP framework used by a web application. But one of the easiest way I would like to share it with you to use this extension in your browser called Wappalyzer.
Wappalyzer is a cross-platform utility that uncovers the technologies used on websites. It detects content management systems, e-commerce platforms, web frameworks, server software, analytics tools and many more.
There are a few other tools out there that analyze what a website is using.
BuiltWith - Stand alone site, also available as a plugin
W3Techs - Stand alone site, also available as a plugin
Auto-generated comments may also help. In my case, I can tell from the comments in index.php that it's written in CodeIgniter.
If you have a copy of the project hosted somewhere you can use https://builtwith.com

Opening CakePHP to edit with Dreamweaver?

just a quick question, I have just done some research and I can not find a complete solution to my problem. I am using Dreamweaver CC only because I have started working with Designers and its the edit program they use. They have no PHP knowledge and they use Dreamweaver to build all there Photoshop designs.
I have found a few sites about how to add .ctp files, but it (Dreamweaver) only lets me edit the .cpt files as PHP files and not view them. I am running the CakePHP site I am using for these tests within a VM (virtual machine) locally. But although I have setup this as a live sever and I view the controller, it just loads the missing AppController message?
So are there any way of getting Dreamweaver to load and view CakePHP completely? So my designers can edit / build their designs the way they want?
I am very stocked, CC is a very new version of Dreamweaver and yes they seem to have added, LESS and SASS support (last version I used, some time ago, was CS4) and it seems very good, nice syntax highlighter. But why don't they support frameworks, its not just CakePHP, but they seem not to support any PHP based framework? I think with the use of these frameworks, lack of support is stocking!!
I will also just as a side note, I may be building Drupal powered sites for them as well, any pointers on getting that to work in Dreamweaver to?
Many thanks
Glenn.
Your designers (in the best of luck) use some html dummy content to create css files that style it, based on a photoshop or other mockup.
You as a developer need to turn that html to a cake or any other framework template.
There's no automated way for this to be done as no tool can do the creative thinking a human mind can do. That's why dreamweaver doesn't do it. LESS and SASS are not programming languages per se, it's a way to script common CSS which is a different thing.
I believe you shouldn't be adopting to the tools your designers use and neither should they adopt the tools that help you, as much a house builder doesn't need to use a CAD to build on a blueprint created by an architect on a CAD, neither an architect needs to know how to operate machinery. You just need a common ground to talk to each other (the blueprint or HTML/CSS).
So don't force yourself to work on dreamweaver and neither force your designers to work on a code editor. Don't expect dreamweaver to (ever?) integrate a programming IDE as that would be too bloated for both developers and designers and without any true advantages to my opinion.

Dreamviewer & Zend Framework project: Wrong path mapping

I tried all the day to set up a Zend Framework project in Dreamweaver CS5.5. Now, after a few hours spending on google and the CS5.5 doc, i am still not able to debug a Zend Framework project in Dreamweaver:
Let's say, i have a module called "admin" in /application/modules/admin. If i try the Live View feature, Live Code, or the dynamic files discover, it fails at all.
If I try to debug the IndexController of the AdminModule, Dreamweaver always tries to render the page http://foo.bar/application/modules/admin/controllers/IndexController.php, insteadof http://foo.bar/admin[/index/index]
Is there any way to get those features working with Dreamweaver CS5.5?
Also, the include path does not work. The /public/index.php includes something like require_once 'Zend/Application.php';. Where does Dreamweaver search? He tells me that he can not find the file http://foo.bar/Zend/Application.php. Omg, srsly?
I hope there are some Dreamweaver PHP developers out there which can help me.
Btw, I am using Zend Studio at the moment and wanted to get a "quick" look into the new CS5.5 features :/
Update 16.05.2012
Little update from me. I'm currently Using PHPStorm from JetBrains. It is the best IDE I ever had. (Ecpilse/Aptana/Zend Studio/PHPDesigner). Autocomplete for nearly everything, huge plugin repository and much nice features like LESS Support, NodeJS Support, PHPUnit integration or an integrated Git Client. Give it a try. It's free for open source projects.
Dreamweaver can technically work with anything, but it's really designed to work with procedural php.
I would recommend the eclipse software with the pdt plugin or net beans. WAY better for supporting a zend framework project imo.
I'm not bagging on dreamweaver, it's a nice tool (especially for html/css), but for OO PHP programming, it's really not designed for it.

SubVersioning a Flash, jQuery, PHP Project

I am building a Flash, jQuery, and PHP based project which I would like to subversion from the get go. I have experience using Dreamweaver CS5's sub versioning capabilities. So, as far as the PHP and jQuery (the non-flash portion) goes, I'm pretty comfortable.
However, I would like some recommendations on how to subversion the Flash portion. I know Flash Builder has SVN capabilities, however, the flash portion isn't going to function as and RIA, but more, if you will, like a game. As far as my experience with Flash goes, this type of project will work best if done in Flash Professional. Here are the options, as I see them:
find an extension for Flash Professional which will enable SVN. Is there one???
create a "Flash Professional Project" in Flash Builder, built it in Flash Professional, and subversion with Flash Builder.
place my project within a defined site in Dreamweaver, and subversion from Dreamweaver.
I would like to avoid something like Tortoise SVN, as I have had more difficulty with that than I am up for for now. :)
Does anyone have any suggestions, or pointers as to how I can handle this?
Thank you for your time.
Well, any SVN client can handle any kind of file - you don't have to have an extension built into each piece of software you're using. The best way to do this is to put all of your project files into a folder somewhere and then using whatever SVN client you want just add that whole folder to your repo. Does that make sense? The front-end that you're using is more or less irrelevant.
I don't really understand what you are saying about TortoiseSVN, but since you are using different IDE's I would recommend you to use TortoiseSVN as the uniform interface to SVN. And IMO, TortoiseSVN is simple and powerful.
Man up and use the command line ;). Why SVN? Yes, I personally prefer it but there are other great alternatives, have a think about GIT, Mercurial and others too. Mercurial/Git have massive benefits for single developer projects. The flash file will be versioned just like everything else in there. Remember to set your ignore files appropriately to cut out all the os specific poop.
Soon as you get yourself a good versioning repository set up, it doesn't really matter what client you use. I like the one bundled with netbeans / versions or the cli.

Deploying CodeIgniter (or any PHP projects) to the live site?

What's the ideal way of deploying CodeIgniter projects (or any PHP projects for that matter) from your local machines to the live site? I've been using subversion for checking out and updating the code from live sites for quite some time now. But there are others who say that this practice is not good since you do not need the svn metadata in the live site. I've also read a couple of articles where they use Capitrano to deploy PHP projects. What's your practice in PHP project deployment?
I use Phing for all my building needs.
I've created several tasks like, prod, staging, debug. When i want to push all data to my production server, i just use phing prod. This will checkout all code from my repo, do some config changes, run all static files like css and javascript through a minifier etc.
More info on Phing here:
Phing.info
http://www.slideshare.net/hozn/phing-building-with-php
I asked a similar question and a lot of people seemed to like Phing:
What is your preferred php deployment strategy?
I took a look at it and the config files were pretty intimidating. I'm interested to hear more on this subject.

Categories