public function actionEditdata()
{
return $this->render('editdata', [
'model' => $model,
]);
}
$user = new User();
$user->username = $this->username;
$user->email = $this->email;
$user->fio = $this->fio;
$user->apartment = $this->apartment;
$user->house = $this->house;
$user->housing = $this->housing;
$user->street = $this->street;
$user->phone = $this->phone;
$user->setPassword($this->password);
return $user->save() ? $user : null;
Getting unknown property: yii\web\Application::app
public function generateAuthKey(){
$this->auth_key = Yii::$app->app->security->generateRandomString();
}
$user->generateAuthKey();
if ($user = $model->signup()) {
Откуда оно могло взяться?