public function credit() { $list = M('credit_setting')->order('type ASC')->findPage(100); $creditType = M('credit_type')->order('id ASC')->findAll(); $this->assign('creditType', $creditType); $this->assign($list); $this->display(); }