/** * @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'); }
/** * @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'); }