[size="6"]AccountForm[/size]
/**
* Saves new account settings.
*
* @return bool
*/
public function save()
{
if ($this->validate()) {
if ($this->new_password) {
$this->user->password = $this->new_password;
}
return $this->user->save();
}
return false;
}
[size="6"]controller[/size]
$model = new AccountForm();
if ($model->load(yii::$app->request->post())&&$model->save()) {
//.......
}
[size="6"]error info[/size]
PHP Fatal Error 'yii\base\ErrorException' with message 'Maximum execution time of 5 seconds exceeded'
in /home/wwwroot/www.yiitest.com/vendor/yiisoft/yii2/base/Security.php:565
Stack trace:
#0 [internal function]: yii\base\ErrorHandler->handleFatalError()
#1 {main}