public function doNewList() { //list $listPageHelper = new ListPageHelper(); $listPageHelper->pageSize = 10; $pageNum = intval(Request::get("page")); $listPageHelper->pageNum = $pageNum ? $pageNum : 1; //Condition $messageCondition = new MessageValue(); //get data $messageService = new MessageService(); $messageCondition->addStatusCondition(Value::STATUS_NOT_SEE, Value::EQUAL); $messageCondition->addCondition(' 1=1 ORDER BY `message_id` DESC'); $messageList = $messageService->getList($messageCondition, $listPageHelper); $userCondition = new UserValue(); $userService = new UserService(); $userlist = $userService->getlist($userCondition); //view View::set("UserViewValue", $userlist); View::set("MessageList", $messageList); View::set("ListPageHelper", $listPageHelper); View::display("List"); }