X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=module%2FApplication%2Fconfig%2Fmodule.config.php;h=6561e263c03407d79cd1f20e565d439cd7b5c726;hb=465b76128948d2c30285b9aba1dbc020e14a7d69;hp=9c6302a594513868041ad0864d5552362032960c;hpb=eeb378172fcd703006d14ee9b5b01fa939de66a1;p=zf2.biz%2Fapplication_blanche.git diff --git a/module/Application/config/module.config.php b/module/Application/config/module.config.php index 9c6302a..6561e26 100644 --- a/module/Application/config/module.config.php +++ b/module/Application/config/module.config.php @@ -1,7 +1,7 @@ 'layouts/layout.phtml', - 'display_exceptions' => false, + 'layout' => 'layout/layout.phtml', + 'display_exceptions' => true, 'di' => array( 'instance' => array( 'alias' => array( @@ -9,12 +9,28 @@ return array( 'error' => 'Application\Controller\ErrorController', 'view' => 'Zend\View\PhpRenderer', ), + + // Inject the plugin broker for controller plugins into + // the action controller for use by all controllers that + // extend it. + 'Zend\Mvc\Controller\ActionController' => array( + 'parameters' => array( + 'broker' => 'Zend\Mvc\Controller\PluginBroker', + ), + ), + 'Zend\Mvc\Controller\PluginBroker' => array( + 'parameters' => array( + 'loader' => 'Zend\Mvc\Controller\PluginLoader', + ), + ), + + // Setup the PhpRenderer 'Zend\View\PhpRenderer' => array( 'parameters' => array( 'resolver' => 'Zend\View\TemplatePathStack', 'options' => array( 'script_paths' => array( - 'application' => __DIR__ . '/../views', + 'application' => __DIR__ . '/../view', ), ), ),