text changes to registration mail content
[namibia] / module / Application / config / module.config.php
1 <?php
2 /**
3  * Zend Framework (http://framework.zend.com/)
4  *
5  * @link      http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
6  * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7  * @license   http://framework.zend.com/license/new-bsd New BSD License
8  */
9
10 return array(
11     'router' => array(
12         'routes' => array(
13             'home' => array(
14                 'type' => 'Zend\Mvc\Router\Http\Literal',
15                 'options' => array(
16                     'route'    => '/',
17                     'defaults' => array(
18                         'controller' => 'Application\Controller\Index',
19                         'action'     => 'index',
20                     ),
21                 ),
22             ),
23             // The following is a route to simplify getting started creating
24             // new controllers and actions without needing to create a new
25             // module. Simply drop new controllers in, and you can access them
26             // using the path /application/:controller/:action
27             'application' => array(
28                 'type'    => 'Literal',
29                 'options' => array(
30                     'route'    => '/application',
31                     'defaults' => array(
32                         '__NAMESPACE__' => 'Application\Controller',
33                         'controller'    => 'Index',
34                         'action'        => 'index',
35                     ),
36                 ),
37                 'may_terminate' => true,
38                 'child_routes' => array(
39                     'default' => array(
40                         'type'    => 'Segment',
41                         'options' => array(
42                             'route'    => '/[:controller[/:action]]',
43                             'constraints' => array(
44                                 'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
45                                 'action'     => '[a-zA-Z][a-zA-Z0-9_-]*',
46                             ),
47                             'defaults' => array(
48                             ),
49                         ),
50                     ),
51                 ),
52             ),
53         ),
54     ),
55     'service_manager' => array(
56         'factories' => array(
57             //'translator' => 'Zend\I18n\Translator\TranslatorServiceFactory',
58                         'navigation' => 'Zend\Navigation\Service\DefaultNavigationFactory'
59         ),
60     ),
61     /* 'translator' => array(
62         'locale' => 'en_US',
63         'translation_file_patterns' => array(
64             array(
65                 'type'     => 'gettext',
66                 'base_dir' => __DIR__ . '/../language',
67                 'pattern'  => '%s.mo',
68             ),
69         ),
70     ), */
71     'controllers' => array(
72         'invokables' => array(
73             'Application\Controller\Index' => 'Application\Controller\IndexController'
74         ),
75     ),
76     'view_manager' => array(
77         'display_not_found_reason' => true,
78         'display_exceptions'       => true,
79         'doctype'                  => 'HTML5',
80         'not_found_template'       => 'error/404',
81         'exception_template'       => 'error/index',
82         'template_map' => array(
83             'layout/layout'           => __DIR__ . '/../view/layout/layout.phtml',
84             'application/index/index' => __DIR__ . '/../view/application/index/index.phtml',
85             'error/404'               => __DIR__ . '/../view/error/404.phtml',
86             'error/index'             => __DIR__ . '/../view/error/index.phtml',
87         ),
88         'template_path_stack' => array(
89             __DIR__ . '/../view',
90         ),
91     ),
92     'navigation' => array(
93                 'default' => array(
94                                 array(
95                                                 'label' => 'Home',
96                                                 'route' => 'home',
97                                 ),
98                                 /* array(
99                                                 'label' => 'Album',
100                                                 'route' => 'album',
101                                                 'pages' => array(
102                                                                 array(
103                                                                                 'label' => 'Add',
104                                                                                 'route' => 'album',
105                                                                                 'action' => 'add',
106                                                                 ),
107                                                                 array(
108                                                                                 'label' => 'Edit',
109                                                                                 'route' => 'album',
110                                                                                 'action' => 'edit',
111                                                                 ),
112                                                                 array(
113                                                                                 'label' => 'Delete',
114                                                                                 'route' => 'album',
115                                                                                 'action' => 'delete',
116                                                                 ),
117                                                 ),
118                                 ), */
119                 ),
120     ),
121 );