[eluser]alebenson[/eluser]
Well i was reading the User Guide about Views and gives an example of multiples views
Code:
class Page extends Controller {
function index()
{
$data['page_title'] = 'Your title';
$this->load->view('header');
$this->load->view('menu');
$this->load->view('content', $data);
$this->load->view('footer');
}
}
what can i do, if the 'menu' need some vars to be passed ?
ok, i guess like 'content' adding $data, but the $data for the menu, is on the Menu Controller, and not in the Page controller
thanks!