Welcome Guest, Not a member yet? Register   Sign In
CI 2 - extending the controller problems
#4

[eluser]InsiteFX[/eluser]
Code:
// this should be in application/controllers
class Home extends MY_Controller {

    function __construct()
    {
        parent::__construct();    
    }
    
    function index()
    {
        $this->load->view('memo_home.php');
    }
}

Code:
// this should be in application/core
class Home extends MY_Controller {

    function __construct()
    {
        parent::__construct();    
    }
    
    function index()
    {

    }

}

If this will not work check to make sure that your default controller
is Home and that you have the view file named memo_home.php.

I just tested this on my system and it works fine!

InsiteFX


Messages In This Thread
CI 2 - extending the controller problems - by El Forum - 10-10-2010, 03:22 PM
CI 2 - extending the controller problems - by El Forum - 10-11-2010, 12:15 AM
CI 2 - extending the controller problems - by El Forum - 10-11-2010, 06:34 AM
CI 2 - extending the controller problems - by El Forum - 10-12-2010, 12:51 AM
CI 2 - extending the controller problems - by El Forum - 08-18-2011, 09:26 PM
CI 2 - extending the controller problems - by El Forum - 08-18-2011, 10:35 PM
CI 2 - extending the controller problems - by El Forum - 08-19-2011, 12:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB