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.
- Getting Started
- Application Structure
- Handling Requests
- Key Concepts
- Working with Databases
- Getting Data from Users
- Displaying Data
- RESTful Web Services
- Development Tools
- Special Topics
Still in most cases you can run Yii 2.0 on a shared hosting environment with a few adjustments. Shared hosting environments are often quite limited about configuration and directory structure.
Some are environmental, some are related with your code, while some others are related with Yii itself. There are many factors affecting the performance of your Web application.
Yii supports composition and sending of the email messages. However, the framework core provides only the content composition functionality and basic interface. For the most common cases you can use yii2-swiftmailer official extension.
Yii offers a full spectrum of I18N features that support message translation, view translation, date and number formatting. 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 development and deployments Yii applications can be run as Docker containers. Docker containers can solve many issues such as having identical software versions at developer's computer and the server, fast deployments or simulating multi-server architecture while developing.
Yii provides a set of commonly used core validators, found primarily under the yii\validators namespace. You may use aliases to specify the use of these core validators.
Yii 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.
Creating your own Yii 2 Application structure. Project templates in Yii are simply repositories containing a composer.json file, and registered as a Composer package.
Yii 2 Advanced Project Template includes three tiers: frontend, backend and console, each of which is a separate Yii application. The template is a skeleton Yii 2 application.