I’m in the design phase of a medium-sized PHP web application (not a static website). Since I’m a programmer with the creativity of an eggplant I’d like to contract with a freelancer to design the look and feel of the application. What deliverable should I ask for from the designer? HTML files? PHP files? How do I apply the look and feel from the designer to my app?
Share
Ask for:
Once it’s time to integrate the deisgn into your application, you want to separate the design from your logic and database access. This makes maintenance easier later on, and also will make it easier to make changes as you develop the application.
– Although the specifics of which ones you should use are outside the scope of this answer, note that there are many frameworks and paradigms (MVC frameworks, content management systems, etc) which facilitate the separation of the logic.
A simple way to separate the logic from the design is to simply set up variables in PHP files, and then include the appropriate files for the design (which should also be php, or phtml files as you’ll see below). Also, you should take any sections of the page that recur in many pages and have those as a separate php file which you can include in other pages. For example…
Bad Way (do NOT do this!):
Better Way:
…
…
…
…
Best way:
As hinted at above, the best way to go about this is to use a framework (Zend, etc), which will be designed to make things as organized and easy as possible for you.