Well, it does... but did you remember to:
$email = new EmailComponent; ?
p.s. what "speed reasons" did you run into?
On Oct 27, 5:21 pm, "Turnquist, Jonah" <[EMAIL PROTECTED]> wrote:
> I've come across a need to load a component via the action for speed
> reasons.
>
> My case:
> I have a user controller with view(), login(), and register()
> actions. I need the email component in, and only in, the register()
> action. So using var $components = array(etc); is not something I
> want to do for speed reasons. I do not want the component loaded for
> actions that do not use it.
>
> Looking at the docs it looks like this should work:
> App::import('Component', 'Email');
>
> But it doesn't. (??)
>
> So how can this be done?
>
> Thanks,
> Jonah
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---