0
請看下面的控制器笨2笨2 - 使用無需在URL中指定默認的控制器功能
<?php
class user extends CI_Controller {
function __construct() {
parent::__construct();
}
function index($id) {
// do something here
}
}
>
所以我的網址是 http://mydomain.com/user/index/2
但我真的嗎?想要的是能夠在URL中沒有'索引',所以URL將是 http://mydomain.com/user/2
有人知道我能做到嗎?
在此先感謝
你需要考慮的路線。 – Darren 2011-02-06 22:32:39