Book Image

Learning Yii Testing

Book Image

Learning Yii Testing

Overview of this book

Table of Contents (16 chapters)
Learning Yii Testing
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Structure of the default web application


The basic application is composed of a SiteController with a couple of modules and a login system.

The configuration files should be quite straightforward to understand and can be found in the /config directory. We will be touching on them every now and then in order to configure certain aspects and extensions we're going to use.

Regardless of whether you are using the manually installed basic application or the Composer-driven method explained earlier, you will be required to set up the database on your environment and configure the application.

In the configuration file web.php, be sure to have set up the cookieValidationKey, and while in db.php, set up the DSN of your database as described in the documentation at http://www.yiiframework.com/doc-2.0/guide-start-databases.html#configuring-a-db-connection.

You will also note the following at the end of the web.php file:

// config/web.php

if (YII_ENV_DEV) {
    // configuration adjustments for 'dev' environment...