Welcome Guest, Not a member yet? Register   Sign In
Passing vars from MY_Controller to child controllers and views
#4

[eluser]danmontgomery[/eluser]
Code:
class MY_Controller extends Controller {

    function __construct() {
        parent::__construct();
        $this->load->model('global_model');
        $this->config_db = $this->global_model->get_config_db();
    }

}

In PHP, yes... If you don't declare class members as otherwise they are public.


Messages In This Thread
Passing vars from MY_Controller to child controllers and views - by El Forum - 02-10-2011, 01:48 PM



Theme © iAndrew 2016 - Forum software by © MyBB