composer dependency installation
[phinde.git] / www / www-header.php
index 2ec8c2fffcc876e464247031af340f88ab0aeb9c..e5cee94aa092e672fbfe59a6c535b2966ebf012c 100644 (file)
@@ -2,7 +2,6 @@
 namespace phinde;
 require_once __DIR__ . '/../src/init.php';
 
-\Twig_Autoloader::register();
 $GLOBALS['twig'] = new \Twig_Environment(
     new \Twig_Loader_Filesystem(__DIR__ . '/../data/templates'),
     array(
@@ -26,7 +25,8 @@ function render($tplname, $vars = array(), $return = false)
     if (!isset($vars['htmlhelper'])) {
         //$vars['htmlhelper'] = new HtmlHelper();
     }
-    $vars['apptitle'] = 'cweiske.de search';
+    $vars['apptitle'] = $GLOBALS['phinde']['apptitle'];
+    $vars['baseUrl'] = '/';
 
     $template = $GLOBALS['twig']->loadTemplate($tplname . '.htm');
     if ($return) {