Ah ha! Thanks Francois, ill just use an intermediary between sfActions and my action classes... that should work just fine.
On 1/9/08 9:24 AM, "Francois Zaninotto" <[EMAIL PROTECTED]> wrote: > The problem comes from the execution filter, which uses method_exists() to > find executeXXX() methods, and __call() isn't executed in that case. There > was a ticket on the subject some time ago (#901). Bottomline is: it isn't > possible for now. > > 2008/1/9, Ant Cunningham <[EMAIL PROTECTED]>: >> >> >> On 1/9/08 2:38 AM, "Francois Zaninotto" >> <[EMAIL PROTECTED]> wrote: >> >>> Did you try >>> >>> sfMixer::register('sfComponent', array('GlobalActions', >>> 'executeMyGlobalAction')); >> >> I did. I also tried: >> >> sfMixer::register('sfAction', array('GlobalActions', >> 'executeMyGlobalAction')); >> >> It always gets sent to 404, and on the debug bar I can see that the >> controller is not finding the action. >> >> However, if I actually call the mixin action from within the action like >> in >> the example below it works. >> >> // apps/appname/config/config.php >> sfMixer::register('sfComponent', array('GlobalActions', >> 'executeMyGlobalAction')); >> >> //a normal actions.class.php >> class normalActions extends sfActions >> { >> public function execute mixinProxy() >> { >> $this->executeMyGlobalAction(); >> } >> } >> >> //the mixin class >> class GlobalActions >> { >> executeMyGlobalAction() >> { >> throw new sfException('I worked'); >> } >> } >> >> The problem is I don't want to call it in this fashion I want it to work >> as >> if the action were in the actions.class.php or a parent class. I suppose I >> could just insert a class in the hierarchy between sfActions and my >> normalActions class but I was researching this for possible use in a >> plugin >> and figured a mixin would be a better way to go about it. >> >> >> Thanks for the help! >> >> -ant >> >> >> >> >>> >> >> > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---