5 // Inject the plugin broker for controller plugins into
6 // the action controller for use by all controllers that
8 'Zend\Mvc\Controller\ActionController' => array(
10 'broker' => 'Zend\Mvc\Controller\PluginBroker',
13 'Zend\Mvc\Controller\PluginBroker' => array(
14 'parameters' => array(
15 'loader' => 'Zend\Mvc\Controller\PluginLoader',
19 // Setup the View layer
20 'Zend\View\Resolver\TemplatePathStack' => array(
21 'parameters' => array(
23 'application' => __DIR__ . '/../view',
27 'Zend\View\Renderer\PhpRenderer' => array(
28 'parameters' => array(
29 'resolver' => 'Zend\View\Resolver\TemplatePathStack',
32 'Zend\Mvc\View\DefaultRenderingStrategy' => array(
33 'parameters' => array(
34 'baseTemplate' => 'layout/layout',
37 'Zend\Mvc\View\ExceptionStrategy' => array(
38 'parameters' => array(
39 'displayExceptions' => true,
40 'template' => 'error/index',
43 'Zend\Mvc\View\RouteNotFoundStrategy' => array(
44 'parameters' => array(
45 'notFoundTemplate' => 'error/404',
49 // Setup the router and routes
50 'Zend\Mvc\Router\RouteStack' => array(
51 'parameters' => array(
54 'type' => 'Zend\Mvc\Router\Http\Segment',
56 'route' => '/[:controller[/:action]]',
57 'constraints' => array(
58 'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
59 'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
62 'controller' => 'Application\Controller\IndexController',
68 'type' => 'Zend\Mvc\Router\Http\Literal',
72 'controller' => 'Application\Controller\IndexController',