issue with controllers Help!!! :(

#11
[eluser]DJMOHNL[/eluser]
[quote author="CI_avatar" date="1261469663"]you did not initialize your controller

Code:
class Blog extends Controller
{
   //you missed this one
   //function Blog()
   //{
   //   parent::Controller();    
   //}

   function index()
   {
      echo “Hello world!”;      
   }
}
[/quote]

Yup thats true..

Code:
function Test()
    {
        // you missed this one..
        parent::Controller();// must be inside main controller function!


        // Below here you load libraries, helpers, configuration files and so on.
                $this->load->helper('myhelper'); // example
            
    }


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.