);
}
- public function getConfig($env = null)
+ public function getConfig()
{
return include __DIR__ . '/config/module.config.php';
}
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;
}