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
6889ae34
Commit
6889ae34
authored
Mar 11, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #2615: upgrade guide improvements
parent
0442fcee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
upgrade-from-v1.md
docs/guide/upgrade-from-v1.md
+7
-7
No files found.
docs/guide/upgrade-from-v1.md
View file @
6889ae34
...
@@ -81,8 +81,8 @@ Events
...
@@ -81,8 +81,8 @@ Events
------
------
There is no longer the need to define an
`on`
-method in order to define an event in Yii 2.0.
There is no longer the need to define an
`on`
-method in order to define an event in Yii 2.0.
Instead, you can use whatever event names. To attach a handler to an event, you should
Instead, you can use whatever event names. To attach a handler to an event, you should
now
use the
`on`
method
now
:
use the
`on`
method:
```
php
```
php
$component
->
on
(
$eventName
,
$handler
);
$component
->
on
(
$eventName
,
$handler
);
...
@@ -475,8 +475,8 @@ Auto-quoting Table and Column Names
...
@@ -475,8 +475,8 @@ Auto-quoting Table and Column Names
------------------------------------
------------------------------------
Yii 2.0 supports automatic quoting of database table and column names. A name enclosed
Yii 2.0 supports automatic quoting of database table and column names. A name enclosed
within double curly brackets is treated as a table name, and a name enclosed within
within double curly brackets i
.e.
`{{tablename}}`
i
s treated as a table name, and a name enclosed within
double square brackets is treated as a column name. They will be quoted according to
double square brackets i
.e.
`[[fieldname]]`
i
s treated as a column name. They will be quoted according to
the database driver being used:
the database driver being used:
```
php
```
php
...
@@ -528,9 +528,9 @@ extensions in 2.0 [referer to corresponding guide section](extensions.md).
...
@@ -528,9 +528,9 @@ extensions in 2.0 [referer to corresponding guide section](extensions.md).
Integration with Composer
Integration with Composer
-------------------------
-------------------------
Yii is fully inegrated with
the package manager for PHP named Composer that resolves dependencies, keeps your code
Yii is fully inegrated with
Composer, a well known package manager for PHP, that resolves dependencies, helps keeping
up to date updating it semi-automatically and manages autoloading for third party libraries no matter which autoloading
your code up to date by allowing updating it with a single console command and manages autoloading for third party
these
are using.
libraries no matter which autoloading these libraries
are using.
In order to learn more refer to
[
composer
](
composer.md
)
and
[
installation
](
installation.md
)
sections of the guide.
In order to learn more refer to
[
composer
](
composer.md
)
and
[
installation
](
installation.md
)
sections of the guide.
...
...
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