![]() |
Template error !! - 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: Template error !! (/showthread.php?tid=39998) |
Template error !! - El Forum - 03-26-2011 [eluser]drakula1234[/eluser] I am facing error since a day. I am watching videos on Quote:http://net.tutsplus.com/articles/news/codeigniter-from-scratch-day-1 Quote:A PHP Error was encountered Quote:Fatal error: Call to a member function render() on a non-object in /Users/Harish/Sites/ci_otsg/application/controllers/page.php on line 15 I followed instructions on code igniter and downloaded the template 1.4 and placed the template file in the appropriate folders. This is the template.php in view folder. Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" and this is what I have in the config folder Code: <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); I have a big HTML file that has to be moved to template. I started code igniter today and wanted to move my project completely code igniter. I am a newbie so I need some help on moving my file to code igniter. Template error !! - El Forum - 03-26-2011 [eluser]drakula1234[/eluser] I got it. I forgot to autoload the template library. |