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\AggregateResolver' => array(
21 'injections' => array(
22 'Zend\View\Resolver\TemplatePathStack',
25 'Zend\View\Resolver\TemplatePathStack' => array(
26 'parameters' => array(
28 'application' => __DIR__ . '/../view',
32 'Zend\View\Renderer\PhpRenderer' => array(
33 'parameters' => array(
34 'resolver' => 'Zend\View\Resolver\AggregateResolver',
37 'Zend\Mvc\View\DefaultRenderingStrategy' => array(
38 'parameters' => array(
39 'baseTemplate' => 'layout/layout',
42 'Zend\Mvc\View\ExceptionStrategy' => array(
43 'parameters' => array(
44 'displayExceptions' => true,
45 'template' => 'error/index',
48 'Zend\Mvc\View\RouteNotFoundStrategy' => array(
49 'parameters' => array(
50 'notFoundTemplate' => 'error/404',
54 // Setup the router and routes
55 'Zend\Mvc\Router\RouteStack' => array(
56 'parameters' => array(
59 'type' => 'Zend\Mvc\Router\Http\Segment',
61 'route' => '/[:controller[/:action]]',
62 'constraints' => array(
63 'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
64 'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
67 'controller' => 'Application\Controller\IndexController',
73 'type' => 'Zend\Mvc\Router\Http\Literal',
77 'controller' => 'Application\Controller\IndexController',