fix 4 less

This commit is contained in:
Alexander Yakovlev 2012-12-28 12:24:42 +07:00
parent a48b7fc7b6
commit c95b8a90e9
3 changed files with 7 additions and 5 deletions

View file

@ -1,3 +0,0 @@
@import "colors";
@import "layout";
@import "base";

View file

@ -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)

View file

@ -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):