1.先看的D:\PHPTutorial\WWW\week\application\admin\view\Department\edit.html ——>没找到毛病呀!!!
2.在看D:\PHPTutorial\WWW\week\application\admin\controller\Department.php ——>仔细的看了看也没毛病呀???
3.仔细看看跳转地址不太对,在view\Department\edit.html——>也没有找到链接地址呀!
4.猛然间想到要找D:\PHPTutorial\WWW\week\application\admin\view\Department\lst.html —— >小样让我好找!
原内容:
<td class="td-manage">
<a href="{:url('Position/edit',array('id'=>$vo['id']))}" class="btn btn-primary btn-sm shiny">
<i class="fa fa-edit"></i> 编辑
</a>
<a href="#" onClick="warning('确实要删除吗', '{:url('Position/del',array('id'=>$vo['id']))}')" class="btn btn-danger btn-sm shiny">
<i class="fa fa-trash-o"></i> 删除
</a>
</td>
</tr>
修改为:
<td class="td-manage">
<a href="{:url('Department/edit',array('id'=>$vo['id']))}" class="btn btn-primary btn-sm shiny">
<i class="fa fa-edit"></i> 编辑
</a>
<a href="#" onClick="warning('确实要删除吗', '{:url('Department/del',array('id'=>$vo['id']))}')" class="btn btn-danger btn-sm shiny">
<i class="fa fa-trash-o"></i> 删除
</a>
</td>
</tr>
http://www.iheyud.com/week/public/index.php/admin/department/edit.html