开发者

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');
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜