php5 , how makes templates?

Posted by oussama17 on Stack Overflow See other posts from Stack Overflow or by oussama17
Published on 2012-11-01T22:59:02Z Indexed on 2012/11/01 23:00 UTC
Read the original article Hit count: 257

Filed under:
|
|

I am currently developing a social network using PHP5 without any framework , I create the template by this method , every time I put the header -content -footer but I found that the previous template still there , how can I make templates with this method and show me the path to the best method to play with templates in PHP5.public function affiche($afficheTPL){ $this->registry->getObject('template')->addTemplateBit('hello', 'hellop.tpl.php'); $this->registry -> getObject('template') -> buildFromTemplates($afficheTPL.'/header.tpl.php', $afficheTPL.'/main.tpl.php', $afficheTPL.'/footer.tpl.php'); $this->registry -> getObject('template') -> parseOutput(); print $this -> registry -> getObject('template') -> getPage() -> getContentToPrint(); }

© Stack Overflow or respective owner

Related posts about php

Related posts about html