I don't understand why a default controller isn't being used. Here's my code:


$baseUrl = substr($_SERVER['PHP_SELF'], 0,
                   strpos($_SERVER['PHP_SELF'], '/index.php'));
$frontController = Zend_Controller_Front::getInstance();
$frontController->setBaseUrl($baseUrl);
$frontController->setControllerDirectory($path_to_root .
'application/controllers');
$frontController->throwExceptions(true);

$frontController->dispatch();

If I go to / or /index it works fine. If I go to /aa it throws an
exception because aaController.php doesn't exist. But I thought the
default controller was index so that if there is no aa controller it
would default to the index controller. What am I missing?


Mark

--
Have fun or die trying - but try not to actually die.

Reply via email to