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
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...
--~--~-~--~~-
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
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
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