public function pager() { Hi_Tool_Pager::$limit = 10; $table = new Hi_Db_Table('user_resource'); $pager = $table->pager(); print_r($pager->data); echo $pager->build(); }
/** * 设置字段值的代理 * @param $key * @param $val * @return bool */ public function __set($key, $val) { $info = $this->_table->info(); if (!isset($info[$key])) { throw new Hi_Db_Table_Exception("字段[{$key}]不存在"); } $this->_row[$key] = $val; return true; }