CodeIgniter Forums

Full Version: why data is available in all views ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

hola a todos

I'm loading two views from a controller and the data sent to calp view ($data) is availabe in the main view, it is normal ?

$data['query'] = $this->calendar_model->get_calendars();
$vars['cals'] = $this->load->view('calp', $data, true);
$this->load->view('main', $vars);