Php CodeIgniter$route don';我不在ci3工作
CodeIgniter路由不工作, 我正在尝试以下路线:Php CodeIgniter$route don';我不在ci3工作,php,codeigniter,routes,Php,Codeigniter,Routes,CodeIgniter路由不工作, 我正在尝试以下路线: $route['Kayit'] = "Kayit/index"; localhost:8090/Kayit/result=404未找到页面 但它不起作用。有人能帮我吗 My route.php文件: <?php defined('BASEPATH') OR exit('No direct script access allowed'); $route['404_override'] = ''; $route['translat
$route['Kayit'] = "Kayit/index";
localhost:8090/Kayit/result=404未找到页面
但它不起作用。有人能帮我吗
My route.php文件:
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;
$route['default_controller'] = 'Sayfa/view';
$route['(:any)'] = 'Sayfa/view/$1';
$route['Sayfa/'] = 'Sayfa/view/';
$route['Kayit/'] = "Kayit/index";
?>
Put
因为通配符占位符截取了其他路由,所以在结束行。
比如:
此外,还可以从管线中删除尾部斜线
发件人:
路由将按定义的顺序运行。较高的路线将始终优先于较低的路线
你能再描述一下吗?我不明白:/@MuhammedğağlarTUFAN试着这样做。
$route['(:any)'] = 'Sayfa/view/$1';
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;
$route['default_controller'] = 'Sayfa/view';
$route['Sayfa'] = 'Sayfa/view';
$route['Kayit'] = "Kayit/index";
$route['(:any)'] = 'Sayfa/view/$1';// (:any) wildcard catcher must go at the end