![]() |
CI + Smarty problem - 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: CI + Smarty problem (/showthread.php?tid=46246) |
CI + Smarty problem - El Forum - 10-24-2011 [eluser]CodeIgniterNewbie[/eluser] Here's what I did: 1. Downloaded and unzipped CI 2. Downloaded and unzipped Smarty in /application/libraries/Smarty-3.1.4 3. Saved https://github.com/kzhiwei/codeigniter-smarty/blob/master/application/libraries/Smartylib.php to /application/libraries/Smartylib.php (also fixed line 2 to point to the correct folder) 4. Added Smartylib in autoload libraries 5. Created a test.tpl and called it from the controller: $this->Smartylib->display('test.tpl'); Now, I'm getting the following error: Fatal error: Call to a member function createTemplate() on a non-object in C:\wamp\www\myapp\application\libraries\Smarty-3.1.4\libs\sysplugins\smarty_internal_templatebase.php on line 47 Any ideas what is wrong? CI + Smarty problem - El Forum - 02-18-2012 [eluser]pherum[/eluser] I really can't make the CI working with smarty template engine :down:. as I am new to this thing, and I can't find any step easier for me to make it working. can someone kindly provide me the dummies step to me? :-S :long: I really need your help as I am interested to do this smarty template engine with CI I have downloaded smarty 3.1.7 and CI 2.1.0 |