Hello to all
How can I share variables to several controllers?
In my layout I have a box that lists the latest 10 news site, and another (menu) that lists the categories of news.
I have to put on each controller:
$ this->view->menuItens = Menus :: find (array ('order' => 'order DESC' ));
$ this->view->categories = Categories :: find (array ('order' => 'title DESC' ));
Has somehow I do this just one time? And this variable be available in all controllers?