Example #1
0
 /**
  * @param Application $db
  */
 public function __construct(Application $db)
 {
     parent::__construct($db);
     $this->table = 'post';
     $this->field = array('title', 'content', 'id_user', 'created_Time', 'updated_Time');
 }
Example #2
0
 /**
  * @param Application $db
  */
 public function __construct(Application $db)
 {
     parent::__construct($db);
     $this->table = 'user';
     $this->field = array('name', 'password', 'fullname', 'sex', 'created_Time', 'updated_Time');
 }