note 57543 added to language.oop5.autoload

From: Date: Thu, 06 Oct 2005 21:33:57 +0000
Subject: note 57543 added to language.oop5.autoload
Groups: php.notes 
Request: Send a blank email to php-notes+get-96533@lists.php.net to get a copy of this message
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 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.autoload.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+57543 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57543&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57543&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57543&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57543&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57543&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57543&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57543&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+57543&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#96533) next »