From 747cc1a189a1f53cdcc9790e38f76b9d45ca4473 Mon Sep 17 00:00:00 2001 From: Luciano Baraglia Date: Thu, 16 Jan 2014 08:56:26 -0300 Subject: [PATCH] Some Basic App readme updates [skip ci] --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index b233770..1bc569c 100644 --- a/README.md +++ b/README.md @@ -12,11 +12,14 @@ features to your application. DIRECTORY STRUCTURE ------------------- + assets/ contains assets definition commands/ contains console commands (controllers) config/ contains application configurations controllers/ contains Web controller classes + mails/ contains view files for e-mails models/ contains model classes runtime/ contains files generated during runtime + tests/ contains various tests for the basic application vendor/ contains dependent 3rd-party packages views/ contains view files for the Web application web/ contains the entry script and Web resources @@ -62,3 +65,24 @@ directly under the Web root. http://localhost/basic/web/ ~~~ + +CONFIGURATION +------------- + +### Database + +Edit the file `config/db.php` with real data, for example: + +```php +return [ + 'class' => 'yii\db\Connection', + 'dsn' => 'mysql:host=localhost;dbname=yii2basic', + 'username' => 'root', + 'password' => '1234', + 'charset' => 'utf8', +]; +``` + +**NOTE:** Yii won't create the database for you, this has to be done manually before you can access it. + +Also check and edit the other files in the `config/` directory to customize your application.