6 'Zend\View\Renderer\PhpRenderer' => array(
7 'setResolver' => array(
10 'type' => 'Zend\View\Resolver',
18 'index' => 'Application\Controller\IndexController',
19 'error' => 'Application\Controller\ErrorController',
20 'view' => 'Zend\View\Renderer\PhpRenderer',
23 // Inject the plugin broker for controller plugins into
24 // the action controller for use by all controllers that
26 'Zend\Mvc\Controller\ActionController' => array(
27 'parameters' => array(
28 'broker' => 'Zend\Mvc\Controller\PluginBroker',
31 'Zend\Mvc\Controller\PluginBroker' => array(
32 'parameters' => array(
33 'loader' => 'Zend\Mvc\Controller\PluginLoader',
37 // Setup the View layer
38 'Zend\View\Resolver\TemplatePathStack' => array(
39 'parameters' => array(
41 'application' => __DIR__ . '/../view',
45 'Zend\View\Renderer\PhpRenderer' => array(
46 'parameters' => array(
47 'resolver' => 'Zend\View\Resolver\TemplatePathStack',
50 'Zend\Mvc\View\DefaultRenderingStrategy' => array(
51 'parameters' => array(
52 'baseTemplate' => 'layout/layout',
55 'Zend\Mvc\View\ExceptionStrategy' => array(
56 'parameters' => array(
57 'displayExceptions' => true,
58 'template' => 'error/index',
61 'Zend\Mvc\View\RouteNotFoundStrategy' => array(
62 'parameters' => array(
63 'notFoundTemplate' => 'error/404',
67 // Setup the router and routes
68 'Zend\Mvc\Router\RouteStack' => array(
69 'parameters' => array(
72 'type' => 'Zend\Mvc\Router\Http\Segment',
74 'route' => '/[:controller[/:action]]',
75 'constraints' => array(
76 'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
77 'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
80 'controller' => 'index',
86 'type' => 'Zend\Mvc\Router\Http\Literal',
90 'controller' => 'index',