示例#1
0
文件: Form.php 项目: moiseh/codegen
 public function __construct($properties = array())
 {
     $this->method = 'POST';
     $this->fields = array();
     $this->security = new CSRF($this);
     parent::__construct($properties);
 }
示例#2
0
文件: View.php 项目: moiseh/codegen
 public function __construct($properties = array())
 {
     $this->nav = new Navbar();
     $this->columns = array();
     parent::__construct($properties);
     // convert data
     if (is_array($this->query)) {
         $this->query = new \Meta\Query($this->query);
     }
 }