0
我已经实现了使用Yii框架的项目。网址管理工作正常,但。我需要更改URL文本。它可以在类别名称后显示域名。即我的项目URL是kitchenking.com。域名后我的类别名称应显示。yii框架中的url管理流程
ie kitchenking.com/Thanksgiving。但我的项目url显示像这样我显示如下:
http://kitchenking.com/recipe/index1/name/Thanksgiving
我做了我的配置文件显示以下。请告诉我需要更改代码的位置。
'Home'=>'site/index',
//'cuisine'=>'recipe/index3',
'cuisine/<name:\w+>/<id:\d+>/'=>'recipe/index3',
'holidays/<name:\w+>/<id:\d+>/'=>'recipe/index1',
'calories/<name:\w+>/<id:\d+>/'=>'recipe/index2',
'recipeshow/<name:\w+>/<id:\d+>/'=>'recipe/recipeshow',
//'recipeshow'=>'recipe/recipeshow',
'recipeshow/<name:\w+>/<id:\d+>/'=>'index.php/recipe/course',
上面的代码。我想要像这样变化。配方/ INDEX3而不是美食, 食谱/索引2,而不是节假日,