public function all() { $list = $this->Admin->where(array('is_remove' => 0))->page(I('get.p', 1), 25)->select(); $this->assign('list', $list); $count = $this->Admin->count(); $Page = new Page($count, 25); $show = $Page->show(); // 分页显示输出 $this->assign('page', $show); // 赋值分页输出 $this->display(); // 输出模板 }