You can write AppController method to load comonent and call Component::startup and initialize, but proper loading on the fly is not possible by cake design: - initialize is called before Controller:beforeFilter(); (before any controller code)
I'm not sure why some one needs additional callback fired before "beforeFilter"? Is there any example where code in component needs to be executed before Controller::beforeFilter? tnx. On May 8, 9:37 am, Alberto Pagliarini <[email protected]> wrote: > Simple way to initialize a component on the fly. > > ClassRegistry::init is very useful for model... I'd like it (or > something similar) works with component > > -- > ------ bato ------- --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
