Setup Urlmanager Params For Controller


'urlManager'=>array(

	   'urlFormat'=>'path',

	   'showScriptName'=>false,

	   'rules' => array(

	   '/profile/<id:\d+>' => array('user/profile'),

	   '<controller:\w+>/<id:\d+>'=>'<controller>/view',

	   '<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',

	   '<controller:\w+>/<action:\w+>'=>'<controller>/<action>',

         )

       )

url: ‘http://localhost/mysite/profile/123’;

but not working, somebody can help me?

try removing the forward slash in your profile




'rules' => array(

           'profile/<id:\d+>' => array('user/profile'),

           '<controller:\w+>/<id:\d+>'=>'<controller>/view',

           '<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',

           '<controller:\w+>/<action:\w+>'=>'<controller>/<action>',



do you have a htaccess file? and double check if mod rewrite is enabled