Welcome Guest, Not a member yet? Register   Sign In
Best way to have multiple parent controllers
#8

[eluser]wiredesignz[/eluser]
Code:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
* Blog Controller
*/
class Blog_Controller extends Controller
{
    function Blog_Controller() {
        parent::Controller();
    }
}

/**
* Admin Controller
*/
class Admin_Controller extends Controller
{    
    function Admin_Controller() {
        parent::Controller();
    }
}

/* End of file MY_Controller.php */
/* Location: ./application/libraries/MY_Controller.php */

Code:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
* include Blog Controller class
*/
include_once 'Blog_controller'.EXT;

/**
* include Admin Controller class
*/
include_once 'Admin_controller'.EXT;

/* End of file MY_Controller.php */
/* Location: ./application/libraries/MY_Controller.php */


Messages In This Thread
Best way to have multiple parent controllers - by El Forum - 05-02-2009, 05:10 PM
Best way to have multiple parent controllers - by El Forum - 05-02-2009, 05:13 PM
Best way to have multiple parent controllers - by El Forum - 05-02-2009, 05:16 PM
Best way to have multiple parent controllers - by El Forum - 05-02-2009, 06:51 PM
Best way to have multiple parent controllers - by El Forum - 05-02-2009, 09:57 PM
Best way to have multiple parent controllers - by El Forum - 05-03-2009, 01:52 AM
Best way to have multiple parent controllers - by El Forum - 05-03-2009, 03:26 AM
Best way to have multiple parent controllers - by El Forum - 05-03-2009, 03:39 AM
Best way to have multiple parent controllers - by El Forum - 05-03-2009, 03:49 AM
Best way to have multiple parent controllers - by El Forum - 05-03-2009, 04:37 AM
Best way to have multiple parent controllers - by El Forum - 05-03-2009, 05:24 AM
Best way to have multiple parent controllers - by El Forum - 05-03-2009, 09:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB