Table of Contents

Sample App

Under x0data.app we find a sample webApp built upon

However, the sample WebApp has been modified in several ways. The goal is to quickly start a new webapp for a new url or idea that we have.

The sample webapp has the following entry-points

The identity class is set as 'identityClass' => 'common\models\User'. Our User class extends either from User_with_db.php or User_without_db.php. This allows for easy switching between User registration with a database, or in an array hardcoded in the User_without_db.php class.

publish assets

This sample app will publish assets if they are not there, even in production mode. But only in development mode, the assets will be (re)published on every request. This is achieved by `common/config.main.php':

if (YII_ENV_DEV)
{
    $config['components']['assetManager']['forceCopy'] = true;    
}

However, if the server supports Options +FollowSymLinks we can comment out the forceCopy and get superior performance and always-up-to-date assets by adding in `common/config.main.php':

$config['components']['assetManager']['linkAssets'] = true;   
Error (#32)

Table of Contents

Error (#32)

An internal server error occurred.

The above error occurred while the Web server was processing your request.

Please contact us if you think this is a server error. Thank you.