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
693b9a8b
Commit
693b9a8b
authored
May 05, 2014
by
tsvetann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update concept-behaviors.md
fixed spelling
parent
1bcf3b84
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
concept-behaviors.md
docs/guide/concept-behaviors.md
+1
-1
No files found.
docs/guide/concept-behaviors.md
View file @
693b9a8b
...
@@ -184,7 +184,7 @@ class MyBehavior extends Behavior
...
@@ -184,7 +184,7 @@ class MyBehavior extends Behavior
}
}
```
```
The above code defines the behavior class
`app\components\MyBehavior`
which will provide
s
two properties
The above code defines the behavior class
`app\components\MyBehavior`
which will provide two properties
`prop1`
and
`prop2`
, and one method
`foo()`
to the component it is attached to. Note that property
`prop2`
`prop1`
and
`prop2`
, and one method
`foo()`
to the component it is attached to. Note that property
`prop2`
is defined via the getter
`getProp2()`
and the setter
`setProp2()`
. This is so because
[
[yii\base\Object
]
]
is defined via the getter
`getProp2()`
and the setter
`setProp2()`
. This is so because
[
[yii\base\Object
]
]
is an ancestor class of
[
[yii\base\Behavior
]
], which supports defining
[
properties
](
concept-properties.md
)
by getters/setters.
is an ancestor class of
[
[yii\base\Behavior
]
], which supports defining
[
properties
](
concept-properties.md
)
by getters/setters.
...
...
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