[eluser]katama[/eluser]
I created My_Controller.php that is autoload in libraries and there are my admin.php, that must extend My_Controller.php. It looks like this.
Code:
Class Admin extends My_Controller {
function Admin() {
parent::My_Controller();
$this->My_Controller();
}
function index() {
How can I inherit index() method from My_Controller ?
}
}
My_Controller.php :
Code:
class My_Controller extends Controller {
function My_Controller() {
parent::Controller();
$this->load->library('pagination');
}
function index() {
echo "Hello from My_controller controller";
}
}
Sorry,I am a not good in OOP..
And..How can I inherit index() method from My_Controller ?
Thanks