App::import !== ClassRegistry::init App::import only loads the class, you need to initialize it by hand
-----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Hofmann Sent: 25. juli 2008 09:54 To: CakePHP Subject: Loading a component with App::import() doesn't work Hi all! I'm using cake 1.2.0.7296 RC2 and was now rewriting my code. When I try to import a component aith App::import, it seems not be loaded/started up: public function __construct() { parent::__construct(); App::import('component', 'Auth'); } Results in: "Undefined property: GameController::$Auth" Even loading it directly in the action method or globally in the App- Controller doesn't work. Do you know this problem? Greetings, Andreas! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
