Commit 90af6453 by Alexander Makarov

Merge pull request #1999 from lucianobaraglia/basic-app-doc-update

Some Basic App readme updates [skip ci]
parents 3ff408b9 4f164219
...@@ -12,11 +12,14 @@ features to your application. ...@@ -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. ...@@ -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.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment