php - url management flow in yii framework -


i have implemented project using yii framework. url manager works fine but. need change url text. shown domain name after category name. ie project url kitchenking.com. after domain name category name should display.

ie kitchenking.com/thanksgiving. project url display shows follow:

http://kitchenking.com/recipe/index1/name/thanksgiving 

i did config file shows following. please suggest me needs change code.

'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',   

above code. wants change this. recipe/index3 instead cuisine, recipe/index2 instead holidays,

in urlmanager modify rules follows :-

'urlmanager' => array(     'rules' => array(         'cuisine' => 'recipe/index3',         'holidays' => 'recipe/index3',     ) ) 

Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -