- // Defining where to look for views. This works with multiple paths,
- // very similar to include_path
- 'Zend\View\Resolver\TemplatePathStack' => array(
- 'parameters' => array(
- 'paths' => array(
- 'application' => __DIR__ . '/../view',
- ),
- ),
- ),
- // View for the layout
- 'Zend\Mvc\View\DefaultRenderingStrategy' => array(
- 'parameters' => array(
- 'layoutTemplate' => 'layout/layout',
- ),
- ),
- // Injecting the router into the url helper
- 'Zend\View\Helper\Url' => array(
- 'parameters' => array(
- 'router' => 'Zend\Mvc\Router\RouteStack',
- ),
- ),
- // Configuration for the doctype helper
- 'Zend\View\Helper\Doctype' => array(
- 'parameters' => array(
- 'doctype' => 'HTML5',
- ),
- ),
- // View script rendered in case of 404 exception
- 'Zend\Mvc\View\RouteNotFoundStrategy' => array(
- 'parameters' => array(
- 'displayNotFoundReason' => true,
- 'displayExceptions' => true,
- 'notFoundTemplate' => 'error/404',
- ),
- ),
- // View script rendered in case of other exceptions
- 'Zend\Mvc\View\ExceptionStrategy' => array(
- 'parameters' => array(
- 'displayExceptions' => true,
- 'exceptionTemplate' => 'error/index',
- ),
- ),
+ ),
+ ),
+ 'controller' => array(
+ 'classes' => array(
+ 'index' => 'Application\Controller\IndexController'
+ ),
+ ),
+ 'view_manager' => array(
+ 'display_not_found_reason' => true,
+ 'display_exceptions' => true,
+ 'doctype' => 'HTML5',
+ 'not_found_template' => 'error/404',
+ 'exception_template' => 'error/index',
+ 'template_map' => array(
+ 'layout/layout' => __DIR__ . '/../view/layout/layout.phtml',
+ 'index/index' => __DIR__ . '/../view/index/index.phtml',
+ 'error/404' => __DIR__ . '/../view/error/404.phtml',
+ 'error/index' => __DIR__ . '/../view/error/index.phtml',
+ ),
+ 'template_path_stack' => array(
+ __DIR__ . '/../view',