[zen-24] Removed the default route
[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' => 'index',
11                         'action'     => 'index',
12                     ),
13                 ),
14             ),
15         ),
16     ),
17     'controller' => array(
18         'classes' => array(
19             'index' => 'Application\Controller\IndexController'
20         ),
21     ),
22     'view_manager' => array(
23         'display_not_found_reason' => true,
24         'display_exceptions'       => true,
25         'doctype'                  => 'HTML5',
26         'not_found_template'       => 'error/404',
27         'exception_template'       => 'error/index',
28         'template_map' => array(
29             'layout/layout'           => __DIR__ . '/../view/layout/layout.phtml',
30             'application/index/index' => __DIR__ . '/../view/application/index/index.phtml',
31             'error/404'               => __DIR__ . '/../view/error/404.phtml',
32             'error/index'             => __DIR__ . '/../view/error/index.phtml',
33         ),
34         'template_path_stack' => array(
35             __DIR__ . '/../view',
36         ),
37     ),
38 );