Create project/lib/myCommonActions.class.php: <?php class myCommonActions extends sfActions {
public function executeCommon() { // do whatever } } Top of your actions replace the extension: <?php class moduleActions extends myCommonActions { public function executeSpecific() { } } Hope that helps, Mike } On Dec 4, 2: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 symfony-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---