public function actionLoginAs($userId) { $this->setUser($userId); return $this->redirect(['index']); }