On Fri, Jul 25, 2008 at 3:54 AM, Andreas Hofmann <[EMAIL PROTECTED]> wrote: > > 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"
Well, usually you load a component by setting the $components array var $components = array('Auth'); What is it you are trying to do? -- Chris Hartjes Motto for 2008: "Moving from herding elephants to handling snakes..." @TheKeyBoard: http://www.littlehart.net/atthekeyboard --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---