|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I have just installed a 3rd party program to my site and while I was running through the code I noticed that is has HTML template pages for certain sections in. They have tags such as this <tag>{PHP_Variable}</tag> which I have figured are used to structure the data from a DB/PHP script.
Are there any sites where I can get more information on how to use and best uses for this type of set up? Is this a good practice in coding or are there better ways to do this? Thanks Rob
__________________
Rob |
|
|||
|
Quote:
Quote:
If you use large amounts of PHP mixed within the HTML then if you hand the page to a designer who is not PHP literate then it is much harder for them to work on the design. The downside of templating is that if can take additional time to process over embedding the PHP directly in to the HTML. I use a home grown template engine as it can then be optimised for the task in hand thus minimizing the overhead associated with a template system. |
|
|||
|
Query your favorite search engine for "FastTemplate"
It is fast (hence the name) and pretty simple to use. It uses the same structure..
__________________
Hardcore Programming Solutions and Coffee Drinker |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |