Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
$route['[0-9A-Za-z]'] = "editor/index/$1";
当我查看我的编辑器控制器时,在 index 方法中,我没有通过参数。它只是说“$ 1”
你可以试试$route[ '(:any)' ] = "editor"
$route[ '(:any)' ] = "editor"
然后根据需要处理:
function index() { $id = $this->uri->segment( 3 ); // Or whatever segment you end up with. // Do something. }