@ -505,7 +505,7 @@ The `CWebUser` class in 1.1 is now replaced by [[yii\web\User]], and there is no
`CUserIdentity` class. Instead, you should implement the [[yii\web\IdentityInterface]] which
`CUserIdentity` class. Instead, you should implement the [[yii\web\IdentityInterface]] which
is much more straightforward to use. The advanced project template provides such an example.
is much more straightforward to use. The advanced project template provides such an example.
Please refer to the [Authentication](security-authentication.md), [Authorization](security-authorization.md), and [Advanced Project Template](https://github.com/yiisoft/yii2-app-advanced/blob/master/docs/guide/README.md) sections for more details.
Please refer to the [Authentication](security-authentication.md), [Authorization](security-authorization.md), and [Advanced Project Template](https://www.yiiframework.com/extension/yiisoft/yii2-app-advanced/doc/guide) sections for more details.
> Info: Active Record is a powerful way to access and manipulate database data in an object-oriented fashion.
> Info: Active Record is a powerful way to access and manipulate database data in an object-oriented fashion.
You may find more detailed information in the [Active Record](db-active-record.md) section. Alternatively, you may also interact with a database using a lower-level data accessing method called [Data Access Objects](db-dao.md).
You may find more detailed information in the [Active Record](db-active-record.md) section. Alternatively, you may also interact with a database using a lower-level data accessing method called [Database Access Objects](db-dao.md).
Creating an Action <spanid="creating-action"></span>
Creating an Action <spanid="creating-action"></span>
In this section, you learned how to work with a database. You also learned how to fetch and display
In this section, you learned how to work with a database. You also learned how to fetch and display
data in pages with the help of [[yii\data\Pagination]] and [[yii\widgets\LinkPager]].
data in pages with the help of [[yii\data\Pagination]] and [[yii\widgets\LinkPager]].
In the next section, you will learn how to use the powerful code generation tool, called [Gii](https://github.com/yiisoft/yii2-gii/blob/master/docs/guide/README.md),
In the next section, you will learn how to use the powerful code generation tool, called [Gii](https://www.yiiframework.com/extension/yiisoft/yii2-gii/doc/guide),
to help you rapidly implement some commonly required features, such as the Create-Read-Update-Delete (CRUD)
to help you rapidly implement some commonly required features, such as the Create-Read-Update-Delete (CRUD)
operations for working with the data in a database table. As a matter of fact, the code you have just written can all
operations for working with the data in a database table. As a matter of fact, the code you have just written can all
be automatically generated in Yii using the Gii tool.
be automatically generated in Yii using the Gii tool.
This section will describe how to use [Gii](https://github.com/yiisoft/yii2-gii/blob/master/docs/guide/README.md) to automatically generate code
This section will describe how to use [Gii](https://www.yiiframework.com/extension/yiisoft/yii2-gii/doc/guide) to automatically generate code
that implements some common Web site features. Using Gii to auto-generate code is simply a matter of entering the right information per the instructions shown on the Gii Web pages.
that implements some common Web site features. Using Gii to auto-generate code is simply a matter of entering the right information per the instructions shown on the Gii Web pages.
Through this tutorial, you will learn how to:
Through this tutorial, you will learn how to:
@ -15,7 +15,7 @@ Through this tutorial, you will learn how to:
Starting Gii <spanid="starting-gii"></span>
Starting Gii <spanid="starting-gii"></span>
------------
------------
[Gii](https://github.com/yiisoft/yii2-gii/blob/master/docs/guide/README.md) is provided in Yii as a [module](structure-modules.md). You can enable Gii
[Gii](https://www.yiiframework.com/extension/yiisoft/yii2-gii/doc/guide) is provided in Yii as a [module](structure-modules.md). You can enable Gii
by configuring it in the [[yii\base\Application::modules|modules]] property of the application. Depending upon how you created your application, you may find the following code is already provided in the `config/web.php` configuration file:
by configuring it in the [[yii\base\Application::modules|modules]] property of the application. Depending upon how you created your application, you may find the following code is already provided in the `config/web.php` configuration file:
```php
```php
@ -129,7 +129,7 @@ or to customize them:
> Info: Gii is designed to be a highly customizable and extensible code generation tool. Using it wisely
> Info: Gii is designed to be a highly customizable and extensible code generation tool. Using it wisely
can greatly accelerate your application development speed. For more details, please refer to
can greatly accelerate your application development speed. For more details, please refer to
the [Gii](https://github.com/yiisoft/yii2-gii/blob/master/docs/guide/README.md) section.
the [Gii](https://www.yiiframework.com/extension/yiisoft/yii2-gii/doc/guide) section.
If you've read through the entire "Getting Started" chapter, you have now created a complete Yii application. In the process, you have learned how to implement some commonly
If you've read through the entire "Getting Started" chapter, you have now created a complete Yii application. In the process, you have learned how to implement some commonly
needed features, such as getting data from users via an HTML form, fetching data from a database, and
needed features, such as getting data from users via an HTML form, fetching data from a database, and
displaying data in a paginated fashion. You have also learned how to use [Gii](https://github.com/yiisoft/yii2-gii/blob/master/docs/guide/README.md) to generate
displaying data in a paginated fashion. You have also learned how to use [Gii](https://www.yiiframework.com/extension/yiisoft/yii2-gii/doc/guide) to generate
code automatically. Using Gii for code generation turns the bulk of your Web development process into a task as simple as just filling out some forms.
code automatically. Using Gii for code generation turns the bulk of your Web development process into a task as simple as just filling out some forms.
This section will summarize the Yii resources available to help you be more productive when using the framework.
This section will summarize the Yii resources available to help you be more productive when using the framework.
Yii learning curve is not as steep as other PHP frameworks but still it requires some beforehand knowledge.
The Yii learning curve is not as steep as other PHP frameworks but still there are some things you should learn before starting with Yii.
## PHP
## PHP
Yii is a PHP framework so make sure you [read and understand language reference](http://php.net/manual/en/langref.php).
Yii is a PHP framework so make sure you [read and understand language reference](http://php.net/manual/en/langref.php).
When developing with Yii you will be writing code in an object oriented fashion, so make sure you are familiar with [Classes and Objects](https://secure.php.net/manual/en/language.oop5.basic.php) as well as [namespaces](https://secure.php.net/manual/en/language.namespaces.php).
## Object oriented programming
## Object oriented programming
@ -17,6 +18,6 @@ manage that complexity.
## Command line and composer
## Command line and composer
Yii extensively uses de-facto standard PHP package manager, [Composer](https://getcomposer.org/) so make sure you read
Yii extensively uses de-facto standard PHP package manager, [Composer](https://getcomposer.org/) so make sure you read
and understand its guide. If you are not familiar with using command line it is time to start trying. Once you
and understand its [guide](https://getcomposer.org/doc/01-basic-usage.md). If you are not familiar with using command line it is time to start trying. Once you
learn the basics you'll never want to work without it.
learn the basics you'll never want to work without it.