X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=modules%2FApplication%2Fconfigs%2Fmodule.config.php;h=481fb13cb9f306fa593adde87393dfb780c696db;hb=643f3aed7ead44ef22c9111826de34aae3eef566;hp=1d13323724a8316ccbdc724193e7bcefa2d48639;hpb=4e86aaa3691ef3e38dc2dcbcc8429ab57cb3bf7d;p=zf2.biz%2Fgalerie.git diff --git a/modules/Application/configs/module.config.php b/modules/Application/configs/module.config.php index 1d13323..481fb13 100644 --- a/modules/Application/configs/module.config.php +++ b/modules/Application/configs/module.config.php @@ -9,21 +9,6 @@ return array( 'error' => 'Application\Controller\ErrorController', 'view' => 'Zend\View\PhpRenderer', ), - - 'Zend\View\HelperLoader' => array( - 'parameters' => array( - 'map' => array( - 'url' => 'Application\View\Helper\Url', - ), - ), - ), - - 'Zend\View\HelperBroker' => array( - 'parameters' => array( - 'loader' => 'Zend\View\HelperLoader', - ), - ), - 'Zend\View\PhpRenderer' => array( 'parameters' => array( 'resolver' => 'Zend\View\TemplatePathStack', @@ -32,20 +17,21 @@ return array( 'application' => __DIR__ . '/../views', ), ), - 'broker' => 'Zend\View\HelperBroker', ), ), ), ), - 'routes' => array( 'default' => array( - 'type' => 'Zend\Mvc\Router\Http\Regex', + 'type' => 'Zend\Mvc\Router\Http\Segment', 'options' => array( - 'regex' => '/(?P[^/]+)(/(?P[^/]+)?)?', - 'spec' => '/%controller%/%action%', + 'route' => '/[:controller[/:action]]', + 'constraints' => array( + 'controller' => '[a-zA-Z][a-zA-Z0-9_-]*', + 'action' => '[a-zA-Z][a-zA-Z0-9_-]*', + ), 'defaults' => array( - 'controller' => 'error', + 'controller' => 'index', 'action' => 'index', ), ),