Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Urlmanager Issue

$
0
0
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.

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>