Installing template plugin
I need some help installing the template plugin for CI. Ive dowloaded and copyied the files and folders to the right places but a simple
function index()
{
$this->template->render();
}
in my Welcome (fresh install of CI) results in a error and im t开发者_如何学JAVAhinking im suppose to include the template plugin in the config/autoload somewhere?
Ive tried to follow http://williamsconcepts.com/ci/codeigniter/libraries/template/start.html but it does not describe how to intergate the plugin with the system (unless i missed something)
(the error is "Fatal error: Call to a member function render() on a non-object in")
Add it to $autoload['libraries'] in application/config/autoload.php:
$autoload['libraries'] = array('template');
精彩评论