model = new \app\admin\model\shop\Freight; $this->view->assign("typeList", $this->model->getTypeList()); } public function getList() { $list = $this->model->field('id,name')->select(); return json($list); } }