开发者

Codeigniter using routes isn't working?

How to use this things, the routes ?

For example, i my page is

  • controller/function

and i want the controller part and the function part to become

  • name
  • $route['controller/function'] = "name";

开发者_开发知识库and i tryed like that, but nothing happens, still when trying to go to controller/function it is controller/function not name


you need to do it the other way round.

actually you define a route to a desired controller function:

$route['en/name'] = 'en_controller/name_function';

also see here: CI Routing


You should read the manual URI Routing in CI URI Routing. There are some examples that will help you understand how to make your routing to work.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜