To do my URL unique

del

Hi,

Are you trying to use query string as unique or the action name as dynamic unique?

If your goal is to have each URL unique then simply use md5() and append to your param.




<?= Yii::app()->createUrl('/shop-'.$model->id.'-'.$uid.'-'.$model->uid . md5($model->id. uniqid())); ?>



and If URL param means then no need to concat the params as single.

May be





public function actionIndex($id,$uid,$hash){

        $arbs = Arbitration::model()->findAll('uid=:uid OR uto=:uid ORDER BY created DESC',array(':uid'=>Yii::app()->user->id));

        $this->render('index',array('arbs'=>$arbs));

 }