Hi 
I wnat to set up 2 controller, defalut and admin, i found here this: 
http://www.nabble.com/RewriteRouter-gone...-tf3225893s16154.html post 
I tried to do it same way:
$controller = Zend_Controller_Front::getInstance();

$controller->throwExceptions(true);

$controller->setControllerDirectory(array(
    'default' => ROOT . '/apl/controllers/',
    'admin'   => ROOT . '/apl/controllers/admin/'
)); 
but when i call  http://localhost/site/www/admin/test/
i get 
Fatal error: Uncaught exception 'Zend_Exception' with message 'File
"Admin\TestController.php" was not found.' in
G:\wamp2\www\pl_flash\lib\Zend.php:175 
Stack trace: 
     #0 G:\wamp2\www\pl_flash\lib\Zend.php(103):
Zend::loadFile('TestController....', Array, true) 
    #1 G:\wamp2\www\pl_flash\www\index.php(63):
Zend::loadClass('Admin_TestContr...') 
    #2 [internal function]: __autoload('Admin_TestContr...') #3 
My dir structure looks like this:
/apl/
    /controllers/
         /admin/
   /views/
  /models/
...
/www/
   /admin/
  
at apl/controllers/asmin/ i have IndexController, TestController but still
it doesn't work

Regard
Maciej


-- 
View this message in context: 
http://www.nabble.com/rewrite-router-problem-tf3299925s16154.html#a9179513
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to