From: Matthew Weier O'Phinney Date: Mon, 2 Jul 2012 11:35:25 +0000 (-0500) Subject: [zen-24] Removed the default route X-Git-Url: http://git.inspyration.org/?a=commitdiff_plain;h=36a6cbc066c8f3a25defd744a40deffcaf403b9e;p=zf2.biz%2Fapplication_blanche.git [zen-24] Removed the default route - Removed the default route, as it is not recommended. - See https://github.com/zendframework/ZendSkeletonModule/pull/3 for how a module-specific default route can be created. --- diff --git a/module/Application/config/module.config.php b/module/Application/config/module.config.php index a52739c..ba2836a 100644 --- a/module/Application/config/module.config.php +++ b/module/Application/config/module.config.php @@ -2,20 +2,6 @@ return array( 'router' => array( 'routes' => array( - 'default' => array( - 'type' => 'Zend\Mvc\Router\Http\Segment', - 'options' => array( - 'route' => '/[:controller[/:action]]', - 'constraints' => array( - 'controller' => '[a-zA-Z][a-zA-Z0-9_-]*', - 'action' => '[a-zA-Z][a-zA-Z0-9_-]*', - ), - 'defaults' => array( - 'controller' => 'index', - 'action' => 'index', - ), - ), - ), 'home' => array( 'type' => 'Zend\Mvc\Router\Http\Literal', 'options' => array(