Good day!
I need suggestions how to solve one case while developing app with CakePHP...
I got layout created and named default.ctp. In that layout I got sidebar with some blocks and there're some statistics taken from the database.
Now my solution: I just created model called Sidebar.php and there're some functions, then I set up data in controller to display it in layout. Is this the best solution? As far I know, I will have to re-set every data in every controller, so need suggestions how to solve that.
Thanks for your suggestions!