public function creditType() { $creditType = M('credit_type')->order('id ASC')->findAll(); $this->assign('creditType', $creditType); $this->display(); }