how to pass parameter on redirect in yii

前端 未结 4 1990
鱼传尺愫
鱼传尺愫 2021-02-06 23:34

I am using Yii framework for my project;

I am redirecting page after success of insertion in database to another controller using

$this->redir

4条回答
  •  旧巷少年郎
    2021-02-06 23:53

    Try:

    $this->redirect(array('controller/action', 'param1'=>'value1', 'param2'=>'value2',...))
    

    api yii 1, api yii 2

提交回复
热议问题