/** * 原生sql分页查询 * Author PunkVv */ protected function sqlLists($select, $from, $parse = false) { if (!is_bool($parse) && !is_array($parse)) { $parse = array_slice(func_get_args(), 2); } $Model = new Model(); $listRows = C('LIST_ROWS') > 0 ? C('LIST_ROWS') : 15; $list_data = $Model->paginate($_GET['p'], $listRows, $select, $from, $parse); $this->assign('_page', $list_data['page'] ? $list_data['page'] : ''); $this->assign('_total', $list_data['count']); return $list_data['list_data']; }