[symfony-users] Re: Help with mixins!! Adding new actions in a module with the event dispatcher (MIXINS)
That it's an interesting idea, but how it's possible to solve that the in the modules generated in the admin generator the actions extends de "auto-generated action classes". Any idea?? Thanks for all your help. On Mon, Oct 12, 2009 at 2:46 PM, Alexandre SALOME < alexandre.sal...@gmail.com> wrote: > You should create a class myActions that extends sfActions, with your new > action. > > Then module classes extends myActions instead of sfActions, so they have > the method. > > Alexandre > > 2009/10/12 Jaime Suez > > I'm using 1.2. >> >> I'm using the new way, with listeners and the event dispatcher. >> >> I found that there come implemented 3 kind of events in the controller: >> >> *controller >> * change_action notify sfController >> module, action >> method_not_found notifyUntil sfController method, arguments >> page_not_found notify sfController module, action >> I was thinking that maybe 'page_not_found' or 'method_not_found' will work >> for adding a new action to many modules, but they didn't. >> >> Any thanks will be very grateful. >> >> >> >> >> On Mon, Oct 12, 2009 at 6:34 AM, Lee Bolding wrote: >> >>> >>> What version of Symfony are you using? >>> >>> I think mixins were replaced by the event system as of Symfony 1.1 >>> >>> On 12 Oct 2009, at 06:36, jaime wrote: >>> >>> > >>> > Hi! >>> > >>> > I'm trying to add new actions to some modules with mixins and the >>> > event dispatcher. >>> > >>> > I find the controller.page_not_found notify, but it didn't work. >>> > >>> > Someone knows if there is a way to add new actions with some mixin?? >>> > > >>> >>> >>> >>> >> >> >> > > > -- > Alexandre Salomé -- alexandre.sal...@gmail.com > > > > > --~--~-~--~~~---~--~~ 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 symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Help with mixins!! Adding new actions in a module with the event dispatcher (MIXINS)
You should create a class myActions that extends sfActions, with your new action. Then module classes extends myActions instead of sfActions, so they have the method. Alexandre 2009/10/12 Jaime Suez > I'm using 1.2. > > I'm using the new way, with listeners and the event dispatcher. > > I found that there come implemented 3 kind of events in the controller: > > *controller > * change_action notify sfController > module, action > method_not_found notifyUntil sfController method, arguments > page_not_found notify sfController module, action > I was thinking that maybe 'page_not_found' or 'method_not_found' will work > for adding a new action to many modules, but they didn't. > > Any thanks will be very grateful. > > > > > On Mon, Oct 12, 2009 at 6:34 AM, Lee Bolding wrote: > >> >> What version of Symfony are you using? >> >> I think mixins were replaced by the event system as of Symfony 1.1 >> >> On 12 Oct 2009, at 06:36, jaime wrote: >> >> > >> > Hi! >> > >> > I'm trying to add new actions to some modules with mixins and the >> > event dispatcher. >> > >> > I find the controller.page_not_found notify, but it didn't work. >> > >> > Someone knows if there is a way to add new actions with some mixin?? >> > > >> >> >> >> > > > > -- Alexandre Salomé -- alexandre.sal...@gmail.com --~--~-~--~~~---~--~~ 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 symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Help with mixins!! Adding new actions in a module with the event dispatcher (MIXINS)
I'm using 1.2. I'm using the new way, with listeners and the event dispatcher. I found that there come implemented 3 kind of events in the controller: *controller * change_action notify sfController module, action method_not_found notifyUntil sfController method, arguments page_not_found notify sfController module, action I was thinking that maybe 'page_not_found' or 'method_not_found' will work for adding a new action to many modules, but they didn't. Any thanks will be very grateful. On Mon, Oct 12, 2009 at 6:34 AM, Lee Bolding wrote: > > What version of Symfony are you using? > > I think mixins were replaced by the event system as of Symfony 1.1 > > On 12 Oct 2009, at 06:36, jaime wrote: > > > > > Hi! > > > > I'm trying to add new actions to some modules with mixins and the > > event dispatcher. > > > > I find the controller.page_not_found notify, but it didn't work. > > > > Someone knows if there is a way to add new actions with some mixin?? > > > > > > > > --~--~-~--~~~---~--~~ 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 symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Help with mixins!! Adding new actions in a module with the event dispatcher (MIXINS)
What version of Symfony are you using? I think mixins were replaced by the event system as of Symfony 1.1 On 12 Oct 2009, at 06:36, jaime wrote: > > Hi! > > I'm trying to add new actions to some modules with mixins and the > event dispatcher. > > I find the controller.page_not_found notify, but it didn't work. > > Someone knows if there is a way to add new actions with some mixin?? > > --~--~-~--~~~---~--~~ 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 symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---