That's a shame, that makes a user plugin (half) pointless since you
would still have to have the beforeFilter code outside the plugin

On Feb 24, 9:45 am, majna <majna...@gmail.com> wrote:
> To call AppController beforeFilter
> form
> PluginAppController:
>
> plugin_name_app_controller:
> function beforeFilter(){
>    parent::beforeFilter();
>
> }
>
> On Feb 24, 8:48 am, Adam Royle <a...@sleekgeek.com.au> wrote:
>
> > Due to the way plugin controllers work with inheritance, you can only
> > access the plugin's beforeFilter logic when the page is requested
> > through the plugin (ie. /plugin/controller/action/)
>
> >  From what I can tell you want to execute plugin logic from your base app?
>
> > The proper way to do this is by creating a component inside your plugin,
> > and adding it to your $components array inside app_controller. Look at
> > the DebugKit plugin as an example of how this can be achieved.
>
> > Cheers,
> > Adam
>
> > adam wrote:
> > > How do I call the app_controller beforeFilter logic from a plugin?
> > > Such as plugin_name/plugin_name_app_controller from the app/
> > > app_controller.php?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to