X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=module%2FApplication%2FModule.php;h=a7986681acbae77253bbace0ffbb105ff37b1c8c;hb=fc842fa8399e83f667574c19eecb701de22dca3a;hp=67087925843a13dcce74c36f2efb0c1e01fce95b;hpb=a4621753e75915d1b59f6d9793d57dbb443518f4;p=zf2.biz%2Fgalerie.git diff --git a/module/Application/Module.php b/module/Application/Module.php index 6708792..a798668 100644 --- a/module/Application/Module.php +++ b/module/Application/Module.php @@ -67,14 +67,16 @@ class Module implements AutoloaderProvider return $this->view; } - $di = $app->getLocator(); - $view = $di->get('view'); - $url = $view->plugin('url'); - $url->setRouter($app->getRouter()); + $locator = $app->getLocator(); + $view = $locator->get('view'); + + // Set up view helpers + $view->plugin('url')->setRouter($app->getRouter()); + $view->doctype()->setDoctype('HTML5'); + + $basePath = $app->getRequest()->getBaseUrl(); + $view->plugin('basePath')->setBasePath($basePath); - $view->plugin('headTitle')->setSeparator(' - ') - ->setAutoEscape(false) - ->append('Application'); $this->view = $view; return $view; }