![]() |
Template library 1.4 problem - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Template library 1.4 problem (/showthread.php?tid=36927) |
Template library 1.4 problem - El Forum - 12-20-2010 [eluser]dannieWalden[/eluser] Hey gurus. I just started using the template library. i’ve followed the userguide several times to get i right, but i get following error: Code: A PHP Error was encountered Cant find out why? Can anyone help me, please ![]() controller: Code: <? configfile: Code: $template['active_group'] = 'default'; templatefile: Code: <html> Template library 1.4 problem - El Forum - 12-20-2010 [eluser]triplethree[/eluser] Hi Dannie. It doesn't (from looking at your template file) look like you need to be using a parser. In you config file set parse_template to false rather then true. Code: $template['default']['parse_template'] = FALSE; If you can, I'd always avoid php short tags. Some hosts don't allow them so it could cause you problems down the line. Instead use Code: <?php echo $header; ?> Hope this helps. Tom Template library 1.4 problem - El Forum - 08-01-2011 [eluser]syntax3rror[/eluser] Thanks for this post.. I made my simple template works. In this page Template Getting Stated didnt't mentioned to load. Code: $this->load->library('Template'); |