note 57543 deleted from language.oop5.autoload by felipe

From: Date: Mon, 24 Mar 2008 22:33:31 +0000
Subject: note 57543 deleted from language.oop5.autoload by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-137495@lists.php.net to get a copy of this message
Note Submitter: shurikk at gmail dot com ---- one more thing about my previous example/comment (there is a bug :) ) --- file a.php should be like this <?php class A { public $a; function __construct($a) { $this->a = $a; } // our kinda magic method public function getClassFile() { return __FILE__; } } ?> --- end a.php one more file to test the example --- b1.php <?php include('Session.php'); $a = new A(); $a = Session::put('a', $a); // go to b.php now ?> --- end b1.php open b1.php, and then b.php in your browser. in the Session class you might want to implement remove() method. thanks --alex

« previous php.notes (#137495) next »