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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
71176b19
Commit
71176b19
authored
Jul 03, 2014
by
Larry Ullman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Picking nits
parent
2d736bf9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
concept-events.md
docs/guide/concept-events.md
+1
-1
concept-properties.md
docs/guide/concept-properties.md
+1
-1
No files found.
docs/guide/concept-events.md
View file @
71176b19
...
@@ -7,7 +7,7 @@ a mailer object may trigger a `messageSent` event when it successfully sends a m
...
@@ -7,7 +7,7 @@ a mailer object may trigger a `messageSent` event when it successfully sends a m
track of the messages that are successfully sent, you could then simply attach the tracking code to the
`messageSent`
event.
track of the messages that are successfully sent, you could then simply attach the tracking code to the
`messageSent`
event.
Yii introduces a base class called
[
[yii\base\Component
]
] to support events. If a class needs to trigger
Yii introduces a base class called
[
[yii\base\Component
]
] to support events. If a class needs to trigger
events, it should extend from
[
[yii\base\Component
]
]
or
a child class.
events, it should extend from
[
[yii\base\Component
]
]
, or from
a child class.
Triggering Events <a name="triggering-events"></a>
Triggering Events <a name="triggering-events"></a>
...
...
docs/guide/concept-properties.md
View file @
71176b19
...
@@ -14,7 +14,7 @@ property. If, in the future, the `label` property gets a new requirement, such a
...
@@ -14,7 +14,7 @@ property. If, in the future, the `label` property gets a new requirement, such a
To solve this problem, Yii introduces a base class called
[
[yii\base\Object
]
] that supports defining properties
To solve this problem, Yii introduces a base class called
[
[yii\base\Object
]
] that supports defining properties
based on
*getter*
and
*setter*
class methods. If a class needs that functionality, it should extend from
based on
*getter*
and
*setter*
class methods. If a class needs that functionality, it should extend from
[
[yii\base\Object
]
], or a child class.
[
[yii\base\Object
]
], or
from
a child class.
> Info: Nearly every core class in the Yii framework extends from [[yii\base\Object]] or a child class.
> Info: Nearly every core class in the Yii framework extends from [[yii\base\Object]] or a child class.
This means that whenever you see a getter or setter in a core class, you can use it like a property.
This means that whenever you see a getter or setter in a core class, you can use it like a property.
...
...
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