Some Basic App readme updates [skip ci]

This commit is contained in:
Luciano Baraglia 2014-01-16 08:56:26 -03:00
parent b23137bd38
commit 747cc1a189

View File

@ -12,11 +12,14 @@ features to your application.
DIRECTORY STRUCTURE DIRECTORY STRUCTURE
------------------- -------------------
assets/ contains assets definition
commands/ contains console commands (controllers) commands/ contains console commands (controllers)
config/ contains application configurations config/ contains application configurations
controllers/ contains Web controller classes controllers/ contains Web controller classes
mails/ contains view files for e-mails
models/ contains model classes models/ contains model classes
runtime/ contains files generated during runtime runtime/ contains files generated during runtime
tests/ contains various tests for the basic application
vendor/ contains dependent 3rd-party packages vendor/ contains dependent 3rd-party packages
views/ contains view files for the Web application views/ contains view files for the Web application
web/ contains the entry script and Web resources web/ contains the entry script and Web resources
@ -62,3 +65,24 @@ directly under the Web root.
http://localhost/basic/web/ 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.