30.06.2012, 09:45
Quote:
I'm sorry but this is a really, really bad example of a template.
1. You use echo to print out all your HTML with PHP? Why? You're giving the server-side work that isn't really meant to be done by the server. 2. Seperate content from style!! 3. Template provides absolutely no support for modular scripting, if someone wanted to make a new page with this template he's had to copy the entire page. It's a nice template, but knowing the syntax doesn't make you a good developer if you don't follow atleast some of the conventions. Frankly if you were working for a company that makes websites and you show them this you'd be fired in a heartbeat. |
Since the moment the website is using server side code(query api, and the "news" system) i've used echo, since for me, is a big mistake to be doing all the time:
Code:
<html> <head> <title> bla bla bla</title> </head> <body><?php echo $somearray; ?> /body> </html>
There is 2 type of people:
1 -> create a separated stylesheet file;
2 -> create the style on the main file.
Third, take a look @ latest news container, he just need to remove the mysql script from it.
Edit: Just created a separated stylesheet for the design, download file updated.