a4136d5536a11e7d7643fdd0d737d5335571b847
[zf2.biz/galerie.git] / module / Application / config / module.config.php
1 <?php
2 return array(
3     'router' => array(
4         'routes' => array(
5             'home' => array(
6                 'type' => 'Zend\Mvc\Router\Http\Literal',
7                 'options' => array(
8                     'route'    => '/',
9                     'defaults' => array(
10                         'controller' => 'Application\Controller\IndexController',
11                         'action'     => 'index',
12                     ),
13                 ),
14             ),
15             // The following is a route to simplify getting started creating
16             // new controllers and actions without needing to create a new
17             // module. Simply drop new controllers in, and you can access them
18             // using the path /application/:controller/:action
19             'application' => array(
20                 'type'    => 'Literal',
21                 'options' => array(
22                     'route'    => '/application',
23                     'defaults' => array(
24                         '__NAMESPACE__' => 'Application\Controller',
25                         'controller'    => 'IndexController',
26                         'action'        => 'index',
27                     ),
28                 ),
29                 'may_terminate' => true,
30                 'child_routes' => array(
31                     'default' => array(
32                         'type'    => 'Segment',
33                         'options' => array(
34                             'route'    => '/[:controller[/:action]]',
35                             'constraints' => array(
36                                 'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
37                                 'action'     => '[a-zA-Z][a-zA-Z0-9_-]*',
38                             ),
39                             'defaults' => array(
40                             ),
41                         ),
42                     ),
43                 ),
44             ),
45         ),
46     ),
47     'controller' => array(
48         'classes' => array(
49             'Application\Controller\IndexController' => 'Application\Controller\IndexController'
50         ),
51     ),
52     'view_manager' => array(
53         'display_not_found_reason' => true,
54         'display_exceptions'       => true,
55         'doctype'                  => 'HTML5',
56         'not_found_template'       => 'error/404',
57         'exception_template'       => 'error/index',
58         'template_map' => array(
59             'layout/layout'           => __DIR__ . '/../view/layout/layout.phtml',
60             'application/index/index' => __DIR__ . '/../view/application/index/index.phtml',
61             'error/404'               => __DIR__ . '/../view/error/404.phtml',
62             'error/index'             => __DIR__ . '/../view/error/index.phtml',
63         ),
64         'template_path_stack' => array(
65             __DIR__ . '/../view',
66         ),
67     ),
68 );