Yii Framework Forum: Not A Bug, An Error In Documentation File - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Not A Bug, An Error In Documentation File Rate Topic: -----

#1 User is offline   mtthwbrnd 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 15-April 14

Posted 19 April 2014 - 09:31 PM

Small formatting error in:
http://www.yiiframew...uide-model.html

The code block below is not inside code tags.

Quote

If you want to keep the default scenario available besides your own scenarios, use inheritance to include it: `php class User extends \yii\db\ActiveRecord {

public function scenarios()
{
$scenarios = parent::scenarios();
$scenarios['login'] = ['username', 'password'];
$scenarios['register'] = ['username', 'email', 'password'];
return $scenarios;
}

} `

0

#2 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 3,614
  • Joined: 17-January 09
  • Location:Russia

Posted 20 April 2014 - 02:43 PM

Fixed in master. Thanks!
Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users