Hi, I'm working with the 2282 revision of the framework and I'm trying to use the RewriteRouter with the 'useModules' param set to true.
My index.php is:
-----------------------
$config = Zend::registry('config');
$router = new Zend_Controller_RewriteRouter(array('useModules' => true));
$ctrl = Zend_Controller_Front::getInstance();
$ctrl->setRouter($router);
$ctrl->setControllerDirectory($config->zf->controllerDirectory);
$ctrl->setBaseUrl($config->webhost->baseurl);
$response = $ctrl->dispatch();
-----------------------
My controllers dir is
\Application
\Controllers
IndexController.php // echo "Welcome on IndexController"
\Main
IndexController.php // echo "Welcome on MainController"
With the URL http://my.space.com/ the output is 'Welcome on
IndexController'.
With the URL http://my.space.com/main/index the output is
"Fatal error: Maximum execution time of 180 seconds exceeded in
/home/devel/enabu/library/Zend/Controller/Dispatcher.php on line 563"
Where I'm wrong?
Thanx,
Paolo.
--
GPG key: 1024D/9C5AE886 2004-10-21 Paolo Casarini <[EMAIL PROTECTED]>
pgplsGqtXaSv0.pgp
Description: PGP signature
