【发布时间】:2016-11-12 12:47:27
【问题描述】:
我的 route.php 中有条目,例如 - $route['admin/students'] = 'view_student'。这里 view_student 是控制器名称。现在,当我从“localhost/school/admin”页面调用<a href="admin/students">Students</a> 时,一切正常;但是当我改变我的路线时 - $route['/school/admin/students'] = 'view_student',并从“localhost/school/admin”页面调用它为<a href="/school/admin/students">Students</a>,就会显示 404 页面。这里有什么问题?
【问题讨论】:
标签: php codeigniter url-routing codeigniter-3