Update layout to use Twitter Bootstrap 2.0.0
[zf2.biz/application_blanche.git] / module / Application / Module.php
index ac25243..2b220cd 100644 (file)
@@ -67,23 +67,15 @@ 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');
 
-        $view->plugin('headTitle')->setSeparator(' - ')
-                                  ->setAutoEscape(false)
-                                  ->append('ZF2 Skeleton Application');
+        // Set up view helpers        
+        $view->plugin('url')->setRouter($app->getRouter());
+        $view->doctype()->setDoctype('HTML5');
 
-        $basePath = $app->getRequest()->detectBaseUrl();
-
-        $view->plugin('headLink')->appendStylesheet($basePath . 'css/bootstrap.min.css');
-
-        $html5js = '<script src="' . $basePath . 'js/html5.js"></script>';
-        $view->plugin('placeHolder')->__invoke('html5js')->set($html5js);
-        $favicon = '<link rel="shortcut icon" href="' . $basePath . 'images/favicon.ico">';
-        $view->plugin('placeHolder')->__invoke('favicon')->set($favicon);
+        $basePath = $app->getRequest()->getBasePath();
+        $view->plugin('basePath')->setBasePath($basePath);
 
         $this->view = $view;
         return $view;