public function getConfig($env = null)
{
- return include __DIR__ . '/configs/module.config.php';
+ return include __DIR__ . '/config/module.config.php';
}
public function initializeView($e)
--- /dev/null
+<?php
+return array(
+ 'layout' => 'layouts/layout.phtml',
+ 'di' => array(
+ 'instance' => array(
+ 'alias' => array(
+ 'index' => 'Application\Controller\IndexController',
+ 'error' => 'Application\Controller\ErrorController',
+ 'view' => 'Zend\View\PhpRenderer',
+ ),
+ 'Zend\View\PhpRenderer' => array(
+ 'parameters' => array(
+ 'resolver' => 'Zend\View\TemplatePathStack',
+ 'options' => array(
+ 'script_paths' => array(
+ 'application' => __DIR__ . '/../views',
+ ),
+ ),
+ ),
+ ),
+ ),
+ ),
+ 'routes' => array(
+ 'default' => array(
+ 'type' => 'Zend\Mvc\Router\Http\Segment',
+ 'options' => array(
+ 'route' => '/[:controller[/:action]]',
+ 'constraints' => array(
+ 'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
+ 'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
+ ),
+ 'defaults' => array(
+ 'controller' => 'index',
+ 'action' => 'index',
+ ),
+ ),
+ ),
+ 'home' => array(
+ 'type' => 'Zend\Mvc\Router\Http\Literal',
+ 'options' => array(
+ 'route' => '/',
+ 'defaults' => array(
+ 'controller' => 'index',
+ 'action' => 'index',
+ ),
+ ),
+ ),
+ ),
+);
+++ /dev/null
-<?php
-return array(
- 'layout' => 'layouts/layout.phtml',
- 'di' => array(
- 'instance' => array(
- 'alias' => array(
- 'index' => 'Application\Controller\IndexController',
- 'error' => 'Application\Controller\ErrorController',
- 'view' => 'Zend\View\PhpRenderer',
- ),
- 'Zend\View\PhpRenderer' => array(
- 'parameters' => array(
- 'resolver' => 'Zend\View\TemplatePathStack',
- 'options' => array(
- 'script_paths' => array(
- 'application' => __DIR__ . '/../views',
- ),
- ),
- ),
- ),
- ),
- ),
- 'routes' => array(
- 'default' => array(
- 'type' => 'Zend\Mvc\Router\Http\Segment',
- 'options' => array(
- 'route' => '/[:controller[/:action]]',
- 'constraints' => array(
- 'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
- 'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
- ),
- 'defaults' => array(
- 'controller' => 'index',
- 'action' => 'index',
- ),
- ),
- ),
- 'home' => array(
- 'type' => 'Zend\Mvc\Router\Http\Literal',
- 'options' => array(
- 'route' => '/',
- 'defaults' => array(
- 'controller' => 'index',
- 'action' => 'index',
- ),
- ),
- ),
- ),
-);