Q on "inhert" class code

From: Date: Thu, 04 Sep 2003 05:08:27 +0000
Subject: Q on "inhert" class code
Groups: php.general 
Request: Send a blank email to php-general+get-161618@lists.php.net to get a copy of this message
I have a parent Class that does this in one of it's methods... $session = &Auth::_importGlobalVariable("session"); $session[$this->_sessionName]['registered'] = true; I would like to "hook" into this in on eof my methods in a child class I thought I could do this... [538] $session = Auth::_importGlobalVariable("session"); [539] $session[Auth::_sessionName]['registered'] = true; But I get this error: Parse error: parse error, unexpected ']', expecting '(' in mypath\AuthUser.php on line 539 OK, I guessed wrong (again). This is how PEAR::Auth deals with inserting its class vars into a session and I want to piggyback on that. No need to roll my own, I think. Can someone show me the errors of my ways? Thanks Walter

« previous php.general (#161618) next »