Welcome Guest, Not a member yet? Register   Sign In
How to use MY_controller with ci 2.0
#1

[eluser]chefnelone[/eluser]
I used to use MY_controller in this way in ci 1.7 but isn't working in ci 2.0
No error message, just a blank page...

In a fresh ci installation:
application/controller/welcome.php
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Welcome extends MY_Controller{

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

    function index()
    {
        $this->load->view('welcome_message');
    }
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */


library/MY_controller.php
Code:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

    class  MY_Controller extends CI_Controller{
    
    
        function __construct(){        
        


        }

}

What am I missing?
Thanks


Messages In This Thread
How to use MY_controller with ci 2.0 - by El Forum - 02-06-2011, 12:07 PM
How to use MY_controller with ci 2.0 - by El Forum - 02-06-2011, 12:59 PM
How to use MY_controller with ci 2.0 - by El Forum - 02-06-2011, 01:03 PM
How to use MY_controller with ci 2.0 - by El Forum - 02-06-2011, 10:39 PM
How to use MY_controller with ci 2.0 - by El Forum - 02-07-2011, 01:54 AM
How to use MY_controller with ci 2.0 - by El Forum - 02-16-2011, 06:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB