[eluser]ELRafael[/eluser]
CI version?
CI 1.7.X
./system/application/libraries/MY_Controller.php
or
./application/libraries/MY_Controller.php
Code:
class MY_Controller extends Controller {
function MY_Controller()
{
parent::Controller();
}
}
CI 2.X
./application/core/MY_Controller.php
Code:
class MY_Controller extends Controller {
function MY_Controller()
{
parent::Controller();
}
}
Only for Controller. If you're planning to extend models, you'll need to use something like that:
Code:
class MY_Model extends CI_Model { //the rest is the same thing
BTW, you are mixing PHP4 and PHP5. If you'll use PHP5, why don't you write all with PHP5 syntax?
public function __construct() for son and father class