Hello everyone!
I have a controller called project and an action called tongquan. The action lookes like this:
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
but It doesn't work.
Any suggestion would be appreciated.
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.