I have many controllers those have similar code. The difference in the codes among them is the name, fieldnames in the DB etc. What I've been doing right now is, I have created one controller. Then i create the next controller, copy and paste the code from the first controller and find and replace the name of the controller, modelname, fieldname etc. I have done the same thing to other controllers as well. The methods like add, edit, index etc are common to all controller.
What I want to do is to reduce the code. i.e I want a code to be placed somewhere and that will be used by all the controllers. How can I do that? Will it be helpful by placing the code in appcontroller ? If so, tell me how can I do it... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
