php中改变函数路由,php – 如何修改codeigniter中的路由
生活随笔
收集整理的這篇文章主要介紹了
php中改变函数路由,php – 如何修改codeigniter中的路由
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
我終于找到了我想要的東西.以下是我的代碼在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";
我非常感謝所有幫助我解決這個問題的人.感謝你們.
總結
以上是生活随笔為你收集整理的php中改变函数路由,php – 如何修改codeigniter中的路由的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: oracle知识博客链接
- 下一篇: php b框架,thinkphp_bju