From 36a6cbc066c8f3a25defd744a40deffcaf403b9e Mon Sep 17 00:00:00 2001 From: Matthew Weier O'Phinney Date: Mon, 2 Jul 2012 06:35:25 -0500 Subject: [PATCH] [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. --- module/Application/config/module.config.php | 14 -------------- 1 file changed, 14 deletions(-) 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( -- 1.7.10.4