note 108921 added to function.spl-autoload-extensions
| From: | office dot stojmenovic at gmail dot com | Date: | Tue, 05 Jun 2012 15:02:05 +0000 |
| Subject: | note 108921 added to function.spl-autoload-extensions | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-188406@lists.php.net to get a copy of this message | ||
Simple example.
<?php
public function __construct()
{
spl_autoload_register(array($this,'library'));
}
public function library($class)
{
if (is_string($class) && null === $class) {
set_include_path(get_include_path().PATH_SEPARATOR.'app/lib/');
spl_autoload_extension('.php');
spl_autoload($class);
}
return false;
}
?>
----
Server IP: 69.147.83.197
Probable Submitter: 93.86.153.149
----
Manual Page -- http://www.php.net/manual/en/function.spl-autoload-extensions.php
Edit -- https://master.php.net/note/edit/108921
Del: integrated -- https://master.php.net/note/delete/108921/integrated
Del: useless -- https://master.php.net/note/delete/108921/useless
Del: bad code -- https://master.php.net/note/delete/108921/bad+code
Del: spam -- https://master.php.net/note/delete/108921/spam
Del: non-english -- https://master.php.net/note/delete/108921/non-english
Del: in docs -- https://master.php.net/note/delete/108921/in+docs
Del: other reasons-- https://master.php.net/note/delete/108921
Reject -- https://master.php.net/note/reject/108921
Search -- https://master.php.net/manage/user-notes.php