<?php
+/**
+ * Zend Framework (http://framework.zend.com/)
+ *
+ * @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ */
+
return array(
'router' => array(
'routes' => array(
'options' => array(
'route' => '/',
'defaults' => array(
- 'controller' => 'Application\Controller\IndexController',
+ 'controller' => 'Application\Controller\Index',
'action' => 'index',
),
),
'route' => '/application',
'defaults' => array(
'__NAMESPACE__' => 'Application\Controller',
- 'controller' => 'IndexController',
+ 'controller' => 'Index',
'action' => 'index',
),
),
),
),
),
- 'controller' => array(
- 'classes' => array(
- 'Application\Controller\IndexController' => 'Application\Controller\IndexController'
+ 'service_manager' => array(
+ 'factories' => array(
+ 'translator' => 'Zend\I18n\Translator\TranslatorServiceFactory',
+ ),
+ ),
+ 'translator' => array(
+ 'locale' => 'en_US',
+ 'translation_file_patterns' => array(
+ array(
+ 'type' => 'gettext',
+ 'base_dir' => __DIR__ . '/../language',
+ 'pattern' => '%s.mo',
+ ),
+ ),
+ ),
+ 'controllers' => array(
+ 'invokables' => array(
+ 'Application\Controller\Index' => 'Application\Controller\IndexController'
),
),
'view_manager' => array(
'template_map' => array(
'layout/layout' => __DIR__ . '/../view/layout/layout.phtml',
'application/index/index' => __DIR__ . '/../view/application/index/index.phtml',
+ 'application/index/test' => __DIR__ . '/../view/application/index/test.phtml',
'error/404' => __DIR__ . '/../view/error/404.phtml',
'error/index' => __DIR__ . '/../view/error/index.phtml',
),