public function lists() { $page = intval(Input::get('page', 1)); $start_time = Input::get('start_time', ''); $expire = Input::get('expire', ''); $args = ['start_time' => $start_time, 'expire' => $expire]; $model = new ActivityModel(); $count = $model->getCount($args); $rows = $model->getRows($page, $args); $page_size = Pagination::getPageSize($count); return View::make('activity.lists', ['rows' => $rows, 'page' => $page, 'page_size' => $page_size, 'params' => $args]); }