On Mar 26, 3:41 pm, Martin Westin <[email protected]> wrote:
> Yes I use it a lot... only for a limited purpose but throughout the
> application.
>
> I actually have two reasons for using it :)
>
> Reason 1: Yoy are close. Not email but similar componets none the
> less. I have my two components for sending mobile messages (sms and
> mms). The application does in some plugins scheduled newsletters. It
> can also be messages send by some system event (recieving a message
> for example can send an automatic reply)
Sounds like you've got a component where you should probably have a
datasource for the gateway and a Message model (or, some other M based
stuff).
I have an email model (which internally - either sets up a controller
and the email component and renders the view to get the content, or
calls requestAction with appropriate params), and payment model (same,
for the HTTPSocket content) for the same sort of reasoning.
> Reason 2: plugins. Everything in my app is plugins except a core doing
> common stuff. I use the PluginnameController in each to handle system
> integration. I could have chosen to load up a Pluginname model instead
> but since I very often need to be at the controller level (because of
> reason 1) there was little point.
I have a similar problem at the back of my mind, which I planned to
solve by using a plugin component as the plugin entry point/interface,
and therefore you'd just (either dynamically or otherwise) include the
plugin's component in your controller to make use of it.
> I don't use plugins at all as "standalone mini applications unrelated
> to the rest of the application"
> I use them much like normal desktop applications do. The core is
> independent of the plugins but each plugin relies heavily on the core
> for a lot of things.
It'd be neat to hear a little more about your current core
architecture, since I have the need to do something (probably)
similar.
>
> I would love to figure out some other good way to deal with plugin-
> interaction... so far requestAction is it.
anyway, controller actions are supposed to be under_scored and that's
the 'fix' for your auth woes imo (or simply if (!empty($this->params
['requested'])) { $this->Auth->allow('*'); }
AD
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---