route.php中controller类指定方法
服务器URL :http://192.168.1.1/test想实现这样的功能URL中输入http://192.168.1.1/test/index.php/pc执行controller中welcome类search_pc函数URL中输入http://192.168.1.1/test/index.php/mobile执行
controller中welcome类search_ mobile函数我在route.php中下面这样设置的$route['pc'] = "welcome/search_pc";
$route['mobile'] = "welcome/search_mobile";但是不起作用,望高手指点一下 怎么不起作用呢?
我这里是管用的。 不知道
就是不起作用 你可以把你的项目打包发上来,我帮你看看。
页:
[1]