fix 4 less
This commit is contained in:
parent
a48b7fc7b6
commit
c95b8a90e9
|
@ -1,3 +0,0 @@
|
|||
@import "colors";
|
||||
@import "layout";
|
||||
@import "base";
|
|
@ -81,7 +81,7 @@ if (isset($_SERVER['KOHANA_ENV']))
|
|||
*/
|
||||
Kohana::init(array(
|
||||
'base_url' => '/phunt',
|
||||
'index_file' => FALSE,
|
||||
'index_file' => 'index.php',
|
||||
'errors' => TRUE,
|
||||
'profile' => (Kohana::$environment == Kohana::DEVELOPMENT),
|
||||
'caching' => (Kohana::$environment == Kohana::PRODUCTION)
|
||||
|
|
|
@ -4,7 +4,12 @@ class Controller_Header extends Controller_Template {
|
|||
public $template = 'header';
|
||||
public function action_standard() {
|
||||
$this->template->title = $this->request->post('title');
|
||||
$this->template->stylesheet = Less::compile(APPPATH.'assets/stylesheets/style');
|
||||
$stylesheets = array(
|
||||
APPPATH.'assets/stylesheets/base',
|
||||
APPPATH.'assets/stylesheets/colors',
|
||||
APPPATH.'assets/stylesheets/layout',
|
||||
);
|
||||
$this->template->stylesheet = Less::compile($stylesheets);
|
||||
$scripts = $this->request->post('scripts');
|
||||
$temp = "";
|
||||
if (is_array($scripts)) foreach($scripts as $script):
|
||||
|
|
Reference in a new issue