Creating A Dynamic Navigation Submenu

Hi everyone,

I have a menu.php file in the includes folder. It contains my navigation menu. My codes look something like this:

$submenu1 = array('link1'=>'sub1','link2'=>'sub2','link3'=>'sub3');

Controller::menu(array('link1'=>$submenu1,'link1'=>$submenu2,'link3'=>$submenu3), $this);

How do I do I generate the $submenu1 array from the database using a controller and this view.


be more specific I does not make sense. what exactly you trying to do