0
$route['[0-9A-Za-z]'] = "editor/index/$1";

当我查看我的编辑器控制器时,在 index 方法中,我没有通过参数。它只是说“$ 1”

4

1 回答 1

0

你可以试试$route[ '(:any)' ] = "editor"

然后根据需要处理:

function index() {
    $id = $this->uri->segment( 3 ); // Or whatever segment you end up with.

    // Do something.
}
于 2011-05-24T02:17:30.890 回答