帮我解决这个问题。
举个例子:我有这个正常的网址
“localhost/CI/index.php/base/storeurl”。
我怎样才能让 Codeigniter 知道要寻找
“本地主机/CI/storeurl”。
我有一个名为index 的函数,它接受Base.php 类中的参数storeURL。帮我解决这个问题。提前致谢。
我终于找到了我要找的东西。这是我的代码在routes.php 中的样子。
/* Custom Routes. */
// Store Normal Pages.
$route['home/(:any)'] = "base/home/$1";
$route['about/(:any)'] = "base/about/$1";
$route['services/(:any)'] = "base/services/$1";
$route['contact/(:any)'] = "base/contact/$1";
$route['feedback/(:any)'] = "base/feedback/$1";
// CategoryPage.
$route['category/(:any)/(:num)'] = "base/category/$1/$2";
// ProductPage.
$route['product/(:any)/(:num)'] = "base/product/$1/$2";
// For Main Home Page.
$route['(:any)'] = "base/home/$1";
我真的很感谢所有帮助我解决这个问题的人。感谢你们。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)