public function __construct() { parent::__construct(); $less = new LessPHP(); $less->compile(); $this->_init(); }
public static function once($type, $message, $redirect = null) { Controller::instance()->input->set_session('alert_once', array('type' => $type, 'message' => htmlspecialchars($message))); if ($redirect) { Url::redirect($redirect); } }
/** * Generates a base URL for the given URI * @param string $uri * @return string */ public static function base($uri = '') { return Controller::instance()->config->base_url($uri); }
public static function asset_path($uri = '') { return Controller::instance()->config->site_url('asset_path', $uri); }
public static function destroy() { Controller::instance()->input->unset_session('user_session'); }