Welcome Guest, Not a member yet? Register   Sign In
CI + Smarty problem
#1

[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-s...rtylib.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?
#2

[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




Theme © iAndrew 2016 - Forum software by © MyBB