0
这甚至可能吗?通过使用自定义路径,如:将URI请求路由到CodeIgniter中的私有方法?
$route['ajax/:any'] = "ajax/route";
然后宣布该方法在控制器专用:
class Ajax extends Controller {
function _route()
{
some code here...
}
}
我知道这个例子并在实践中行不通,但你的想法。
我很感兴趣,为什么你要这个? – DRL 2010-06-26 22:42:00