Either a component, or in your App Controller. In the App Controller you'd be best just importing the model and doing what you need to do. I believe doing it in App Controller sticks with MVC conventions rather than creating a component just for this one action but I could be wrong.
On Friday, September 14, 2012 7:47:54 AM UTC-7, Lightee wrote: > > Dear Cakephp experts, > > My database has a number of tables. The controller corresponding to each > table share similar actions. Basically, the only difference is that the > controller name is different. Is there some way to make them share the same > action even though the controller name is different? Otherwise, I will have > to code same action for different controllers which is highly inefficient. > > Thank you. > -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
