4

PHP Templating

view full story
linux-howto

http://www.linuxquestions.org – Hi, i'm working on a small CMS project. When starting out I didn't know too much CSS, so virtually everything was wrapped in HTML and a little CSS. The main page templates used the following functions: Code: function theme_stylise($data,$tpl='node') {         global $theme_blocks;         return theme_evaluate($theme_blocks[$tpl],$data); } function theme_evaluate($s,$data=array()) {         global $page;         ob_start();         $x=@eval("?>".$s);         (HowTos)