centurion-project / Centurion

Centurion is an open-source CMS delivered as a flexible PHP5 Content Management Framework
http://www.centurion-project.org
197 stars 51 forks source link

Fix bug with route default that is not the last one #84

Closed antoineau closed 12 years ago

Floby commented 12 years ago

I would like it better if a test for this case was attached to the pull request

Floby commented 12 years ago

I've got a test failing


1) Centurion_Controller_AGLTest::testSelect
Zend_Controller_Router_Exception: Route default is not defined

/home/floby/dev/php/centurion/library/Zend/Controller/Router/Rewrite.php:318
/home/floby/dev/php/centurion/library/Zend/Controller/Router/Rewrite.php:463
/home/floby/dev/php/centurion/library/Zend/View/Helper/Url.php:49
/home/floby/dev/php/centurion/library/Zend/View/Abstract.php:342
/home/floby/dev/php/centurion/library/Centurion/Controller/AGL.php:762
/home/floby/dev/php/centurion/library/Centurion/Controller/AGL.php:762
/home/floby/dev/php/centurion/library/Centurion/Controller/AGL.php:573
/home/floby/dev/php/centurion/tests/library/Centurion/Controller/AGLTest.php:30