私は現在、通信社向けの小さな CMS を作成しています。管理者は、一定の間隔でニュースを更新します。今、私はのurl
ように見えるようにしたいのですが、のようhttp://somedomain.com/apple-iphoe5c-released
ではありませんhttp://somedomain.com/top-news/1
。gocart
(codeigniter に組み込まれている) で見たことがありますが、製品名の URL があります。どうすればこれを達成できますか?
2937 次
1 に答える
0
このために、与えられたciのルートを使用しています
小さな例を考えてみましょう
$route['aboutus'] = "any controller is map to that name";
samplesite.com/aboutus [aboutus は管理者] samplesite.com/contactus [contactus は管理者]
$route['memberaccount/(:num)'] = "any controller is map to that name/$1";
samplesite.com/memberaccount/32
それでも取得できない場合は、上記のリンクを試してください https://www.codeigniter.com/userguide2/general/routing.html
于 2013-09-14T07:52:22.090 に答える