yes, in your app controller so if you dont want your global AppController to be that generic, use a plugin and its plugin AppController. this way you will get what you want without effecting the rest of the site.
plugin Webservice for example with WebserviceAppController (having add/edit/... actions) and its controllers inheriting those then. Am Donnerstag, 8. November 2012 04:06:43 UTC+1 schrieb Sam: > > Dear CakePHP gurus, > > I am using CakePHP ver2.2.1 > > The different tables in my database share similar functions which I am > using for web services. For example, the add, edit, view and delete > functions are similar across different tables. The only changes to be made > is that the table or object names are different. I want to avoid repetitive > code. Write once, use everywhere and not make one simple change, got to > change everywhere. Hope you understand what I mean. Is it possible to > "centralize" the similar functions like add, edit, view, delete? > > Thank you for your help in advance. > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- 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.
