Wednesday, November 7, 2012

Can share common functions across different tables?

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 cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate