Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
6f9785a2
Commit
6f9785a2
authored
Oct 17, 2013
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes #995
parent
f716bdd7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Model.php
framework/yii/base/Model.php
+3
-3
ActiveDataProvider.php
framework/yii/data/ActiveDataProvider.php
+1
-1
No files found.
framework/yii/base/Model.php
View file @
6f9785a2
...
...
@@ -117,7 +117,7 @@ class Model extends Component implements IteratorAggregate, ArrayAccess
* ~~~
*
* In the above `$attribute` refers to currently validated attribute name while `$params` contains an array of
* validator configuration options such as `max` in case of `
length
` validator. Currently validate attribute value
* validator configuration options such as `max` in case of `
string
` validator. Currently validate attribute value
* can be accessed as `$this->[$attribute]`.
*
* Yii also provides a set of [[Validator::builtInValidators|built-in validators]].
...
...
@@ -129,8 +129,8 @@ class Model extends Component implements IteratorAggregate, ArrayAccess
* array(
* // built-in "required" validator
* array('username', 'required'),
* // built-in "
length
" validator customized with "min" and "max" properties
* array('username', '
length
', 'min' => 3, 'max' => 12),
* // built-in "
string
" validator customized with "min" and "max" properties
* array('username', '
string
', 'min' => 3, 'max' => 12),
* // built-in "compare" validator that is used in "register" scenario only
* array('password', 'compare', 'compareAttribute' => 'password2', 'on' => 'register'),
* // an inline validator defined via the "authenticate()" method in the model class
...
...
framework/yii/data/ActiveDataProvider.php
View file @
6f9785a2
...
...
@@ -77,7 +77,7 @@ class ActiveDataProvider extends BaseDataProvider
public
$db
;
/**
* Initializes the D
bCache
component.
* Initializes the D
B connection
component.
* This method will initialize the [[db]] property to make sure it refers to a valid DB connection.
* @throws InvalidConfigException if [[db]] is invalid.
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment