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.



Yii 2 Internationalization

User Rating: 5 / 5

Star ActiveStar ActiveStar ActiveStar ActiveStar Active

Internationalization

Internationalization (I18N) refers to the process of designing a software application so that it can be adapted to various languages and regions without engineering changes. For Web applications, this is of particular importance because the potential users may be worldwide. Yii offers a full spectrum of I18N features that support message translation, view translation, date and number formatting.

Yii and Docker

User Rating: 5 / 5

Star ActiveStar ActiveStar ActiveStar ActiveStar Active

Yii and Docker

For development and deployments Yii applications can be run as Docker containers. A container is like a lightweight isolated virtual machine that maps its services to host's ports, i.e. a webserver in a container on port 80 is available on port 8888 on your (local)host.

Yii 2 Core Validators

User Rating: 5 / 5

Star ActiveStar ActiveStar ActiveStar ActiveStar Active

Core Validators

Yii provides a set of commonly used core validators, found primarily under the yii\validators namespace. Instead of using lengthy validator class names, you may use aliases to specify the use of these core validators. For example, you can use the alias required to refer to the [[yii\validators\RequiredValidator]] class:

Yii 2 Console Commands

User Rating: 5 / 5

Star ActiveStar ActiveStar ActiveStar ActiveStar Active

Console applications

Besides the rich features for building web applications, Yii also has full-featured support for console applications which are mainly used to create background and maintenance tasks that need to be performed for a website.

The structure of console applications is very similar to a Yii web application. It consists of one or more [[yii\console\Controller]] classes, which are often referred to as commands in the console environment. Each controller can also have one or more actions, just like web controllers.

Creating your own Application structure

User Rating: 5 / 5

Star ActiveStar ActiveStar ActiveStar ActiveStar Active

Creating your own Application structure

Note: This section is under development.

While the basic and advanced project templates are great for most of your needs, you may want to create your own project template with which to start your projects.

Yii 2 Advanced Project Template

User Rating: 5 / 5

Star ActiveStar ActiveStar ActiveStar ActiveStar Active

Yii 2 Advanced Project Template

Yii 2 Advanced Project Template is a skeleton Yii 2 application best for developing complex Web applications with multiple tiers.

The template includes three tiers: front end, back end, and console, each of which is a separate Yii application.

Subcategories