PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
echo $val[1];
// Outputs \Apps\Admin\Views\Index;
$c = new $val[1]
//( ! ) Fatal error: spl_autoload() [function.spl-autoload]: Class \Apps\Admin\Views\Index could not be loaded in C:\wamp\www\_dev\Rain\Urls\Router.php on line 69
My "autoloader" (PHP handles namespace autoloading automatically):
echo $val[1];
// Outputs \Apps\Admin\Views\Index;
$c = new $val[1]
//( ! ) Fatal error: spl_autoload() [function.spl-autoload]: Class \Apps\Admin\Views\Index could not be loaded in C:\wamp\www\_dev\Rain\Urls\Router.php on line 69
My "autoloader" (PHP handles namespace autoloading automatically):