So I made an object for it, fetching the submenu from the controller:
Code: Select all
class Controller {
var $submenu = array(
'Ctrl/Add' => 'New item',
'Ctrl/Index' => 'View index'
);
}I have these things all the time (page titles, authorization, I really dunno where to put them exactly). Maybe it's time to learn more about design patterns. Anyway, I'd like to hear your thoughts on this 'problem' and how you'd solve it.
Thanks in advance!