X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=modules%2FApplication%2Fconfigs%2Fmodule.config.php;h=9f266c0c1a037b3c1327978023705cfc10094b9c;hb=07f9a36fe6140f21229a07b3f1342edbe7cd8da1;hp=3b5caf2a6acfe5a58c82c3cb68207c252c65fc94;hpb=f8a26075e9ee566a933125f76e73208fffd775a2;p=zf2.biz%2Fgalerie.git diff --git a/modules/Application/configs/module.config.php b/modules/Application/configs/module.config.php index 3b5caf2..9f266c0 100644 --- a/modules/Application/configs/module.config.php +++ b/modules/Application/configs/module.config.php @@ -1,55 +1,36 @@ 'Application\Bootstrap', - 'layout' => 'layouts/layout.phtml', - 'di' => array( + 'layout' => 'layouts/layout.phtml', + 'di' => array( 'instance' => array( 'alias' => array( 'index' => 'Application\Controller\IndexController', '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( - 'methods' => array( - 'setResolver' => array( - 'resolver' => 'Zend\View\TemplatePathStack', - 'options' => array( - 'script_paths' => array( - 'application' => __DIR__ . '/../views', - ), + 'parameters' => array( + 'resolver' => 'Zend\View\TemplatePathStack', + 'options' => array( + 'script_paths' => array( + 'application' => __DIR__ . '/../views', ), ), ), - 'parameters' => array( - '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', ), ),