Friday, February 18. 2005
Practical PHP Coding Standards - Part 2 / 3
Comments
Display comments as
(Linear | Threaded)
Nice piece there Robert, I look forward to the next two!
I would like to comment for any and all who think they’d like to try their hand at a template engine. It is hard…very hard. Trying to impliment many of the features of Smarty and even some PHP type functions can get pretty nerve racking.
But in the end, it’s probably going to be worth it. Since you’ll learn so much about PHP and programming in general.
I would like to comment for any and all who think they’d like to try their hand at a template engine. It is hard…very hard. Trying to impliment many of the features of Smarty and even some PHP type functions can get pretty nerve racking.
But in the end, it’s probably going to be worth it. Since you’ll learn so much about PHP and programming in general.
Thanks, Josh. I forgot to mention that creating your own custom template system is also an option. As Josh mentions, it can be trickly — you are essentially creating your own parser on top of the PHP engline, and issues of performance and correct pattern matching come into play.
Another major benefit of a template engine is division of labor. Programmers can program, and designers can design in HTML, then paste in the appropriate tags to display the programmatically generated content. More on this in Part Three.
Another major benefit of a template engine is division of labor. Programmers can program, and designers can design in HTML, then paste in the appropriate tags to display the programmatically generated content. More on this in Part Three.


In 



I have been thinking a lot lately about PHP coding standards. I recently became intimately familiar with the Pear Coding Standards through developing hands-on in that style. The truth is that while many points seemed valuable, on the whole a lot of the "f
Tracked: Feb 18, 18:11