b68e94990df94af415c457b9db2586cde11259d5
[zf2.biz/galerie.git] / module / Application / config / module.config.php
1 <?php
2 return array(
3     'router' => array(
4         'routes' => array(
5             'default' => array(
6                 'type'    => 'Zend\Mvc\Router\Http\Segment',
7                 'options' => array(
8                     'route'    => '/[:controller[/:action]]',
9                     'constraints' => array(
10                         'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
11                         'action'     => '[a-zA-Z][a-zA-Z0-9_-]*',
12                     ),
13                     'defaults' => array(
14                         'controller' => 'IndexController',
15                         'action'     => 'index',
16                     ),
17                 ),
18             ),
19             'home' => array(
20                 'type' => 'Zend\Mvc\Router\Http\Literal',
21                 'options' => array(
22                     'route'    => '/',
23                     'defaults' => array(
24                         'controller' => 'IndexController',
25                         'action'     => 'index',
26                     ),
27                 ),
28             ),
29         ),
30     ),
31     'controller' => array(
32         'classes' => array(
33             'IndexController' => 'Application\Controller\IndexController'
34         ),
35     ),
36     'view_manager' => array(
37         'display_not_found_reason' => true,
38         'display_exceptions'       => true,
39         'doctype'                  => 'HTML5',
40         'not_found_template'       => 'error/404',
41         'exception_template'       => 'error/index',
42         'template_map' => array(
43             'layout/layout' => __DIR__ . '/../view/layout/layout.phtml',
44             'index/index'   => __DIR__ . '/../view/index/index.phtml',
45             'error/404'     => __DIR__ . '/../view/error/404.phtml',
46             'error/index'   => __DIR__ . '/../view/error/index.phtml',
47         ),
48         'template_path_stack' => array(
49             'application' => __DIR__ . '/../view',
50         ),
51     ),
52 );