The Definitive Guide to Yii 2.0

The Definitive Guide to Yii 2.0

The Definitive Guide to Yii 2.0

This tutorial is released under the Terms of Yii Documentation.

All Rights Reserved.

2014 (c) Yii Software LLC.



Fragment Caching in Yii 2
Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive

Fragment Caching

Fragment caching refers to caching a fragment of a Web page. For example, if a page displays a summary of yearly sale in a table, you can store this table in cache to eliminate the time needed to generate this table for each request. Fragment caching is built on top of data caching.

Data Caching in Yii 2
Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive

Data Caching

Data caching is about storing some PHP variables in cache and retrieving it later from cache. It is also the foundation for more advanced caching features, such as query caching and page caching.

The following code is a typical usage pattern of data caching, where $cache refers to a cache component:

Caching Overview in Yii 2
Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive

Caching

Caching is a cheap and effective way to improve the performance of a Web application. By storing relatively static data in cache and serving it from cache when requested, the application saves the time that would be required to generate the data from scratch every time.

Security best practices
Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive

Security best practices

Below we'll review common security principles and describe how to avoid threats when developing applications using Yii. Most of these principles are not unique to Yii alone but apply to website or software development in general, so you will also find links for further reading on the general ideas behind these.

AuthClient Extension for Yii 2
Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive

AuthClient Extension for Yii 2

This extension adds OpenID, OAuth and OAuth2 consumers for the Yii framework 2.0.

Cryptography Yii 2
Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive

Cryptography

In this section we'll review the following security aspects:

  • Generating random data
  • Encryption and Decryption
  • Confirming Data Integrity

Subcategories