I'm new to the YII framework. I have to hide the default controller name and function name. For example:
(Existing URL : http://localhost/food/store/home )
(Required URL : http://localhost/food/ )
In the YII framework config page, they have declared the urlManager as:
URL Manage in config page :
'urlManager'=>array(
'urlFormat'=>'path',
'showScriptName' => false,
'rules'=>array(
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>'=>'<controller>/index',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
),
'showScriptName'=>false,
)
Default Controller Declaration :
'defaultController'=>'store'