put a whateverActions.php in the projects lib dir, and create
a class in it:
<?php
class whateverActions extends sfActions
{
public function executeYourCommonAction()
{
...
}
}
and in your apps/frontend/modules/yourModule/actions modify
your actions.class.php:
from:
class yourModuleActions extends sfActions
to:
class yourModuleActions extends whateverActions
Hope, you don't use these names. :)
Szabolcs Heilig
On Dec 4, 2007 3:30 PM, eax <[EMAIL PROTECTED]> wrote:
>
> I think it's the good way to do what I want, but I didn't have really
> understood how to do exactly. Can you give me an example ?
>
> Thanks
>
> Sylvain
>
> On 4 déc, 15:12, Cece <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > All your action classes are inherited from sfAction. Create a custom class
> > in your lib directory inherited from sfActions and add the shared common
> > action (executeCommon?) to them. Add it a good name, and inherit your
> > actions from that.
> >
> > Hope it helps,
> >
> > Szabolcs Heilig
> >
> > On Dec 4, 2007 3:02 PM, eax <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > Hi,
> >
> > > I would like an common action to be called from some modules. It's a
> > > sort of common action, but I don't know how to do.
> >
> > > Thanks
> >
> > > Sylvain
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" 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/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---