Update layout to use Twitter Bootstrap 2.0.0
[zf2.biz/application_blanche.git] / module / Application / Module.php
index fc85ebb..2b220cd 100644 (file)
@@ -31,7 +31,7 @@ class Module implements AutoloaderProvider
         );
     }
 
-    public function getConfig($env = null)
+    public function getConfig()
     {
         return include __DIR__ . '/config/module.config.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()->getBasePath();
+        $view->plugin('basePath')->setBasePath($basePath);
 
-        $view->plugin('headTitle')->setSeparator(' - ')
-                                  ->setAutoEscape(false)
-                                  ->append('Application');
         $this->view = $view;
         return $view;
     }