Urlmanager Issue

Hello everyone!

I have a controller called project and an action called tongquan. The action lookes like this:




public function actionTongquan($id)

	{

		$this->render('tongquan',array(

			'model'=>$this->loadModel($id),

		));

	}



I have to config rules inside urlManager so that whenever you request some url like mysite/project/tongquan/6 that url must be appeared in the browser’s address bar like this: mysite/du-an/tong-quan.

How do I get this??

I have tried this




'du-an/tong-quan/<id:\d+]>'=>'project/tongquan',



but It doesn’t work.

Any suggestion would be appreciated.

add these lines of code in the protected/config/main.php file




'urlManager' => array(

	            'urlFormat' 	=> 'path',

	            'showScriptName'=> false,

	            'rules' 		=> array(               

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

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

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

	            					),

        	)	

	),



I already have these lines of code in my config/main.php file.