[eluser]rreynier[/eluser]
Hey guys, is there any way I can make some data set in MY_controller accessible to my views easily?
Right now in MY_controller I am doing something like
Code:
$this->some_variable = $this->some_model->get_some_variable();
Then, in my normal controller, I am loading the view like this:
Code:
$data['some_variable'] = $this->some_variable;
$this->load->view('someview', $data);
Is there any way to add variables directly to my view without having to go about it this way?