Skip to content

Commit

Permalink
fix autoload example, needs to have a generated classmap in library/Zend
Browse files Browse the repository at this point in the history
  • Loading branch information
robertbasic committed Sep 2, 2011
1 parent e10ae0f commit d3a5f50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/autoload_example.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
require_once __DIR__ . '/../library/Zend/Loader/ClassMapAutoloader.php';
$loader = new Zend\Loader\ClassMapAutoloader();
$loader->registerAutoloadMap(__DIR__ . '/../library/Zend/Controller/.classmap.php');
$loader->registerAutoloadMap(__DIR__ . '/../library/Zend/.classmap.php');
$loader->register();

if (!class_exists('Zend\Controller\Action')) {
Expand All @@ -12,5 +12,5 @@
if (!class_exists('Zend\Version')) {
echo "Could not find version class!\n";
} else {
echo "Found version class?\n";
echo "Found version class!\n";
}

0 comments on commit d3a5f50

Please sign in to comment.