Welcome Guest, Not a member yet? Register   Sign In
parent::Controller()
#2

[eluser]LuckyFella73[/eluser]
Hi,

the tutorial was written when we had Codeigniter version < 2.
Up from CI 2 the CI Controller was renamed from "Controller"
to "CI_Controller". So your controller class has to extend
"CI_Controller" and

Code:
// change this
parent::Controller();

// to:
parent::__construct();

Example from USER GUIDE:
Code:
&lt;?php
class Blog extends CI_Controller {

       public function __construct()
       {
            parent::__construct();
            // Your own constructor code
       }
}
?&gt;


Messages In This Thread
parent::Controller() - by El Forum - 07-20-2012, 04:43 AM
parent::Controller() - by El Forum - 07-20-2012, 05:36 AM
parent::Controller() - by El Forum - 07-20-2012, 05:47 AM
parent::Controller() - by El Forum - 07-20-2012, 08:17 AM
parent::Controller() - by El Forum - 07-20-2012, 09:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB