[eluser]nofx[/eluser]
I was thinking about the possibilities with this framework and i have a question that i could't find out myself.
Suppose i have a view like this:
Code:
<html>
<head></head>
<body>
<?= $menu ?>
<?= $content ?>
</body>
</html>
When i call for exmaple to following url: site.com/blog
Then my blogController is used. In that controller i have a method called 'loadMenu()', which loads a menu in $menu.
But when i go the another controller, for instance: site.com/news
Then that means i have to copy the method 'loadMenu()' from my blogController to my newsController inorder to show the menu again. But that means duplicate code which is not good...
How can this problem be solved??