O'Reilly logo

Learning Yii Testing by Matteo Pescarin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required