This repository has been archived on 2020-05-04. You can view files and clone it, but cannot push or open issues or pull requests.
phunk/application/classes/controller/header.php

15 lines
600 B
PHP

<?php defined('SYSPATH') or die('No direct script access.');
class Controller_Header extends Controller_Template {
public $template = 'header';
public function action_standard() {
$this->template->title = $this->request->post('title');
$scripts = $this->request->post('scripts');
$temp = "";
if (is_array($scripts)) foreach($scripts as $script):
$temp .= '<script type="text/javascript" charset="utf-8" src="'.URL::site('assets/javascript/'.$script).'"></script>'."\n";
endforeach;
$this->template->scripts = $temp;
}
public function action_view(){$this->request->redirect('');}
}