Re: Plugins - Calling plugin App Controller from base application App Controller
On Feb 25, 7:36 am, adam abennett...@sbcglobal.net wrote: That's a shame, that makes a user plugin (half) pointless since you would still have to have the beforeFilter code outside the plugin Or entirely useful, since the code you're talking about would be in a component, not the plugin app controller. Why would you want or expect code in an abstract class, that isn't the parent of the current controller, to be executed? AD --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Plugins - Calling plugin App Controller from base application App Controller
On Feb 25, 2:22 am, AD7six andydawso...@gmail.com wrote: On Feb 25, 7:36 am, adam abennett...@sbcglobal.net wrote: That's a shame, that makes a user plugin (half) pointless since you would still have to have the beforeFilter code outside the plugin Or entirely useful, since the code you're talking about would be in a component, not the plugin app controller. Why would you want or expect code in an abstract class, that isn't the parent of the current controller, to be executed? AD Because I know nothing of those things :) Thanks for pointing me in the right direction --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Plugins - Calling plugin App Controller from base application App Controller
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 -~--~~~~--~~--~--~---
Re: Plugins - Calling plugin App Controller from base application App Controller
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 -~--~~~~--~~--~--~---
Re: Plugins - Calling plugin App Controller from base application App Controller
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 -~--~~~~--~~--~--~---