Re: Help in DRY'ing a controllers

2009-03-05 Thread ramonmaruko
Thanks for replying, this information might come in handy later. I just noticed that I have a typo in my title. It's supposed to be 'help in dry'ing controllers' On Mar 5, 1:08 am, majna wrote: > CommonController extends AppController > all common methods here... > (remeber to set parent::befor

Re: Help in DRY'ing a controllers

2009-03-05 Thread ramonmaruko
Thanks for the links, I think I'll go with grigri's approach. On Mar 5, 1:03 am, keymaster wrote: > These links may help: > > http://groups.google.com/group/cake-php/browse_thread/thread/5339fd41...http://groups.google.com/group/cake-php/browse_thread/thread/5339fd41... --~--~-~--~~-

Re: Help in DRY'ing a controllers

2009-03-04 Thread majna
CommonController extends AppController all common methods here... (remeber to set parent::beforefilter() etc. if there is controller callabacks) App:import('Controller', 'Common'); PostController extends CommonController On Mar 4, 3:16 pm, ramonmaruko wrote: > I have three controllers that ha

Re: Help in DRY'ing a controllers

2009-03-04 Thread keymaster
These links may help: http://groups.google.com/group/cake-php/browse_thread/thread/5339fd41fa534323# http://groups.google.com/group/cake-php/browse_thread/thread/5339fd41fa534323# --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Help in DRY'ing a controllers

2009-03-04 Thread ramonmaruko
I have three controllers that have the same code for the index/add/ edit/delete/view actions. How should I refactor the code so that it'll be in just one place, and those three controllers would just inherit the actions from somewhere? Currently, I have the actions defined inside my AppController