Commit edb0991b by Alexander Makarov

Fixed typos

parent a8007c8c
...@@ -380,7 +380,7 @@ class User extends ActiveRecord ...@@ -380,7 +380,7 @@ class User extends ActiveRecord
public function scenarios() public function scenarios()
{ {
return [ return [
self::DEFAULT_SCENARIO => ['username', 'first_name', '!password'] self::SCENARIO_DEFAULT => ['username', 'first_name', '!password']
]; ];
} }
} }
...@@ -396,7 +396,7 @@ $data = [ ...@@ -396,7 +396,7 @@ $data = [
'password' => '123', 'password' => '123',
]; ];
$user->attributes = $data; $user->attributes = $data;
print_r($data); print_r($user->attributes);
``` ```
The code above gives you: The code above gives you:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment