コード例 #1
0
ファイル: Form.php プロジェクト: flo5581/lubaframework
 /**
  * Initialization
  *
  * @param string $action
  * @return void
  */
 public function __construct($action = NULL, array $attributes = [])
 {
     $this->attributes = $attributes;
     $this->templates = defined('FORM_TEMPLATES') ? FORM_TEMPLATES : __DIR__ . '/templates/';
     $this->action = $action;
     if (Session::has('__formerrors')) {
         $this->bind = true;
         $this->bindings = Session::get('__forminputs');
     }
 }
コード例 #2
0
ファイル: Auth.php プロジェクト: flo5581/lubaframework
 public function check()
 {
     return Session::has('__auth_user');
 }