<?php
class Controller_Admin extends Controller_Base
{
public $template = 'layouts/template';
public function action_index()
{
$data["subnav"] = array('index'=> 'active' );
$this->template->title = 'Dashboard';
$this->template->content = View::forge('admin/dashboard', $data);
}
//... etc
I need to pass $subnav to the sidebar menu.
<?php echo View::forge('layouts/partials/sidebar',array('subnav'=>$subnav)); ?>
class Controller_Example extends Controller_Template
{
public $template = 'template_admin';
public function action_index()
{
$this->template->title = 'Example Page';
$this->template->content = View::forge('test/index', $data);
}
}
Any hint? I can't move on.
Thanks a lot. Regards
It looks like you're new here. If you want to get involved, click one of these buttons!