<?php namespace Open\Widget; use Think\Controller; /** * 局部小组件 */ class DepartmentWidget extends Controller{ /* 删除 */ public function del($model){ $this->assign('model',$model); $this->display('Department/del'); } /* 弹窗 */ public function detail($title) { $this->assign('title',$title); $this->display('Department/detail'); } }