Rename "views" and "layouts" to singular form.
[zf2.biz/galerie.git] / module / Application / config / module.config.php
1 <?php
2 return array(
3     'layout'                => 'layout/layout.phtml',
4     'display_exceptions'    => true,
5     'di'                    => array(
6         'instance' => array(
7             'alias' => array(
8                 'index' => 'Application\Controller\IndexController',
9                 'error' => 'Application\Controller\ErrorController',
10                 'view'  => 'Zend\View\PhpRenderer',
11             ),
12             'Zend\View\PhpRenderer' => array(
13                 'parameters' => array(
14                     'resolver' => 'Zend\View\TemplatePathStack',
15                     'options'  => array(
16                         'script_paths' => array(
17                             'application' => __DIR__ . '/../view',
18                         ),
19                     ),
20                 ),
21             ),
22         ),
23     ),
24     'routes' => array(
25         'default' => array(
26             'type'    => 'Zend\Mvc\Router\Http\Segment',
27             'options' => array(
28                 'route'    => '/[:controller[/:action]]',
29                 'constraints' => array(
30                     'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
31                     'action'     => '[a-zA-Z][a-zA-Z0-9_-]*',
32                 ),
33                 'defaults' => array(
34                     'controller' => 'index',
35                     'action'     => 'index',
36                 ),
37             ),
38         ),
39         'home' => array(
40             'type' => 'Zend\Mvc\Router\Http\Literal',
41             'options' => array(
42                 'route'    => '/',
43                 'defaults' => array(
44                     'controller' => 'index',
45                     'action'     => 'index',
46                 ),
47             ),
48         ),
49     ),
50 );