Example #1
0
 function display()
 {
     $defaultTemplate = Config::get('app.template.default', 'default');
     $this->templateBaseURL = BASEURL . '/Templates/' . $defaultTemplate;
     $templatePath = TEMPLATESDIR . '/' . $defaultTemplate . '/index.php';
     $this->content = $this->getViewContent();
     ob_start();
     include $templatePath;
     $output = ob_get_contents();
     ob_end_clean();
     $css = HTML::getCSS(true);
     $js = HTML::getJS(true);
     $output = preg_replace('/<\\/head>/i', $css . "</head>", $output, 1);
     $output = preg_replace('/<\\/body>/i', $js . "</body>", $output, 1);
     echo $output;
 }
Example #2
0
 function addJS($js)
 {
     HTML::addJS($js);
 }
Example #3
0
 public function addCSS($css)
 {
     HTML::addCSS($css);
 }