public function __construct()
 {
     parent::__construct();
     $less = new LessPHP();
     $less->compile();
     $this->_init();
 }
Beispiel #2
0
 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);
     }
 }
Beispiel #3
0
 /**
  * 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);
 }
Beispiel #4
0
 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');
 }