示例#1
0
 public function __construct()
 {
     parent::__construct();
     $less = new LessPHP();
     $less->compile();
     $this->_init();
 }
示例#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);
     }
 }
示例#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);
 }
示例#4
0
 public static function asset_path($uri = '')
 {
     return Controller::instance()->config->site_url('asset_path', $uri);
 }
示例#5
0
 public static function destroy()
 {
     Controller::instance()->input->unset_session('user_session');
 }