Welcome Guest, Not a member yet? Register   Sign In
Need to extend App_Controller
#2

[eluser]Ckirk[/eluser]
Any reason why you aren't using the built in method of extending core classes?

if you create a file in application/core called "MY_Controller" with the following:
Code:
<?php
class MY_Controller extends CI_Controller{
    function __construct(){
     parent::__construct();
    }
    // Your code
}

using your example you'd use that controller like so:
Code:
class Front_Controller extends MY_Controller {
// my code here
}

see the manual for more info: http://ellislab.com/codeigniter/user-gui...asses.html



Messages In This Thread
Need to extend App_Controller - by El Forum - 09-29-2013, 09:51 AM
Need to extend App_Controller - by El Forum - 09-29-2013, 05:52 PM
Need to extend App_Controller - by El Forum - 09-30-2013, 02:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB