3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
6 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
14 'type' => 'Zend\Mvc\Router\Http\Literal',
18 'controller' => 'Application\Controller\Index',
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(
30 'route' => '/application',
32 '__NAMESPACE__' => 'Application\Controller',
33 'controller' => 'Index',
37 'may_terminate' => true,
38 'child_routes' => 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_-]*',
55 'service_manager' => array(
57 'translator' => 'Zend\I18n\Translator\TranslatorServiceFactory',
60 'translator' => array(
62 'translation_file_patterns' => array(
65 'base_dir' => __DIR__ . '/../language',
70 'controllers' => array(
71 'invokables' => array(
72 'Application\Controller\Index' => 'Application\Controller\IndexController'
75 'view_manager' => array(
76 'display_not_found_reason' => true,
77 'display_exceptions' => true,
79 'not_found_template' => 'error/404',
80 'exception_template' => 'error/index',
81 'template_map' => array(
82 'layout/layout' => __DIR__ . '/../view/layout/layout.phtml',
83 'application/index/index' => __DIR__ . '/../view/application/index/index.phtml',
84 'application/index/test' => __DIR__ . '/../view/application/index/test.phtml',
85 'error/404' => __DIR__ . '/../view/error/404.phtml',
86 'error/index' => __DIR__ . '/../view/error/index.phtml',
88 'template_path_stack' => array(