If you need to manually instantiate a component (example referes to
MyComponent):
if (!isset($this->My))
{
loadComponent('My');
$this->My = new MyComponent();
$this->My->startup($this);
}
-MI
---------------------------------------------------------------------------
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
blog: http://www.MarianoIglesias.com.ar
-----Mensaje original-----
De: [email protected] [mailto:[EMAIL PROTECTED] En nombre
de cc96ai
Enviado el: Jueves, 29 de Marzo de 2007 02:25 p.m.
Para: Cake PHP
Asunto: How can I use component in beforeFilter?
I create a LOG components, it works fine (i believe)
only it won't work in beforeFilter (so-far).
I found some post, it mentions, thats no component load up in
beforeFilter ,
then what should I do now?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---