Reputation: 763
I have url: /profile/profileBase/index where "profile" is module, "profileBase" is controller and "index" is action. I want to url manager would accept route like: /profile/read/index where "read" could be alias of controller. Is there any way to do this using url manager rules? Thanks
Upvotes: 0
Views: 84
Reputation: 25302
You should simply add the following rule in urlManager
config :
'profile/read/index'=>'profile/profileBase/index',
Upvotes: 0
Reputation: 2916
'urlManager' => array(
'urlFormat' => 'path',
'showScriptName' => false,
'rules' => array(
'profile/read/index '=>'profile/profileBase/index'
),
),
Upvotes: 1