Smarty in CodeIgnitor - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Smarty in CodeIgnitor (/showthread.php?tid=12054) |
Smarty in CodeIgnitor - El Forum - 10-03-2008 [eluser]blaff[/eluser] Hello, I have read some topics about including Smarty in CodeIgnitor. All of them seams to be very advanced so i tried to include it by my self. I did get the connection between CodeIgnitor and Smarty to work but the problem now is that Smarty can't find the tpl files. This is how i did it: 1. Create the file srt.php in /application/libraries/. 2. Added Smarty folder in /application/libraries/smarty/. 3. Including Smarty class in srt.php Code: require("smarty/class.smarty.php"); Code: $this->template_dir = BASEPATH . '/application/views'; What have i done wrong, the message i get is "Unable to read resource" Best regards, Mikael Smarty in CodeIgnitor - El Forum - 10-03-2008 [eluser]Tom Schlick[/eluser] i have a fully fuctional smary libarary with integrated tag files and a way to load new tags. ive been thinking about packaging it up for a while i guess i will if someone would want it... does anyone want it? Smarty in CodeIgnitor - El Forum - 10-03-2008 [eluser]blaff[/eluser] Yes, please! Smarty in CodeIgnitor - El Forum - 10-03-2008 [eluser]Tom Schlick[/eluser] ok ill throw something together. its not the prettiest thing but it definatly works and works well. give me a little while and ill post it Smarty in CodeIgnitor - El Forum - 10-03-2008 [eluser]blaff[/eluser] I solved this problem! |