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 'script_paths' => array(
42 'application' => __DIR__ . '/../view',
47 'Zend\View\Renderer\PhpRenderer' => array(
48 'parameters' => array(
49 'resolver' => 'Zend\View\Resolver\TemplatePathStack',
52 'Zend\Mvc\View\DefaultRenderingStrategy' => array(
53 'parameters' => array(
54 'baseTemplate' => 'layout/layout.phtml',
57 'Zend\Mvc\View\ExceptionStrategy' => array(
58 'parameters' => array(
59 'displayExceptions' => true,
60 'errorTemplate' => 'error/index.phtml',
63 'Zend\Mvc\View\RouteNotFoundStrategy' => array(
64 'parameters' => array(
65 'notFoundTemplate' => 'error/404.phtml',
69 // Setup the router and routes
70 'Zend\Mvc\Router\RouteStack' => array(
71 'parameters' => array(
74 'type' => 'Zend\Mvc\Router\Http\Segment',
76 'route' => '/[:controller[/:action]]',
77 'constraints' => array(
78 'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
79 'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
82 'controller' => 'index',
88 'type' => 'Zend\Mvc\Router\Http\Literal',
92 'controller' => 'index',