Hello i have a problem!
i want redirect to http://curindex.php/controller/action when save a record and call $this->redirect(array(‘view’, ‘id’ => $model->id));
curindex.php is defined in main.php section params and can change at runtime
Hello i have a problem!
i want redirect to http://curindex.php/controller/action when save a record and call $this->redirect(array(‘view’, ‘id’ => $model->id));
curindex.php is defined in main.php section params and can change at runtime
Don’t know if I understand what you mean but this may help
if($model->save())
$this->redirect('http://'.Yii::app()->params['curindex'].'/'.$this->id.'/'.$this->action->id;