Код: Выделить всё
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', 'id' => $model->id]);
Смотрю что нормально редиректит если так сделать:
Код: Выделить всё
class SomeWidget extends \yii\base\Widget
{
public function run()
{
if (что то) {
$this->view->context->redirect('aaa');
}