Have a look at Cake Components : http://book.cakephp.org/view/62/Components
Though the part about 'select * for all the $uses models every time' might be a bit tricky. On Fri, Sep 18, 2009 at 11:26 AM, Vijay <k.vidn...@gmail.com> wrote: > > Hello All, > > I have one query, i need some data repeatedly in my most of the > controllers. > So is there any solution for creating a common function for that data > & then i can use it in my most of the controllers. > > It is link i need users data in my all pages for display. > So i am creating a common function in the app_controller.php & calling > it in the required controller actions. > > But for this i have to use $uses in the app_controller, it executes > the select * for all the $uses models every time. > > So is there any better way to follow. > > Thanks in advance.......... > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---