CodeIgniter + Smarty = Error


Here's what I did:

<ol><li>Downloaded and unzipped CI</li> <li>Downloaded and unzipped Smarty in /application/libraries/Smarty-3.1.4</li> <li>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)</li> <li>Added Smartylib in autoload libraries</li> <li>Created a test.tpl and called it from the controller: $this->Smartylib->display('test.tpl');</li> </ol>

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?


<a href="http://codeigniter.com/user_guide/general/libraries.html" rel="nofollow">Library references</a> are case sensitive:

$this->load->library('smartylib'); $this->smartylib->display('test.tpl');


  • How to get a list of all blobs in a repository in Git
  • How to get or calculate size of Azure File/Share or Service
  • Install phpMongo Drivers on windows
  • Selecting a subset of data in ServiceStack.OrmLite
  • Using Nested Table variables / Collections in SQL inside PL/SQL blocks
  • Reading space separated values file in c++ error
  • Mixing WebForms and MVC: What should I do with the MasterPage?
  • Time out Error in send mail
  • How to log in to an HTTPS website with Jsoup?
  • PDO error when wrong host name
  • Is there a way to dynamically embed PDF Files in a JSP pulled from the file system?
  • How to get links to open in the native browser in iOS Meteor apps?
  • Switch to popup in python using selenium
  • Who propagate bugfixes across branches (corporate development)?
  • Web.config system.webserver errors
  • Select options in sencha touch is not working for android
  • ADO and msqli connections very slow
  • How can the INSERT … ON CONFLICT (id) DO UPDATE… syntax be used with a sequence ID?
  • Problems compiling files using JOGL
  • HTTP/2 streams vs HTTP/1.1 connections
  • Python urlparse: small issue
  • $wpdb not working in file of WordPress plugin
  • Ajax Loaded meta Tags
  • Using $this when not in object context
  • Display issues when we change from one jquery mobile page to another in firefox
  • Deselecting radio buttons while keeping the View Model in synch
  • RectangularRangeIndicator format like triangular using dojo
  • How do I fake an specific browser client when using Java's Net library?
  • How reduce the height of an mschart by breaking up the y-axis
  • How to extract text from Word files using C#?
  • Perl system calls when running as another user using sudo
  • JSON with duplicate key names losing information when parsed
  • Upload files with Ajax and Jquery
  • Do I've to free mysql result after storing it?
  • Jquery - Jquery Wysiwyg return html as a string
  • How do I rollback to a specific git commit
  • A cron job substitute?
  • InvalidAuthenticityToken between subdomains when logging in with Rails app
  • json Serialization in asp
  • need help with bizarre java.net.HttpURLConnection behavior