Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-13-2008, 11:51 AM
Junior Member
 
Join Date: Aug 2007
Posts: 5
Default default routes

I've got only one route defined "xxx/:lang/:action/". Request of page / or /yyy should result in exception and the ErrorController to take control. But the page opens OK, despite that I have called $router->removeDefaultRoutes();. I just can't figure it out, how do I make any request, exept the ones that start with /xxx to throw the exception
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-13-2008, 06:36 PM
Junior Member
 
Join Date: Mar 2008
Posts: 13
Default

Comment this line: $router->removeDefaultRoutes();
I think it's some bug in ZF. You are being redirected to index/index. According to docs Zend Framework: Documentation
this code
Code:
$dispatcher->setParam('useDefaultControllerAlways', true);
should switch between exception and default controller but it isn't.

$front->throwExceptions(true) + $router->removeDefaultRoutes() = index/index
$front->throwExceptions(true) + #$router->removeDefaultRoutes() = exception
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-16-2008, 02:50 PM
Junior Member
 
Join Date: Aug 2007
Posts: 5
Default

Thanks for response.

Yes, I am being routed to index/index.
Quote:
Originally Posted by xorock View Post
$front->throwExceptions(true) + $router->removeDefaultRoutes() = index/index
$front->throwExceptions(true) + #$router->removeDefaultRoutes() = exception
None of the combinations of the three config options mentioned above do the thing.

Framework version 1.5.2.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-17-2008, 07:21 AM
Junior Member
 
Join Date: Mar 2008
Posts: 13
Default

Check this: [#ZF-3465] dispatcher - error when removing default routes - Zend Framework Issue Tracker
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 09:55 PM.