Browse Source

Better docs structure and minor fixes

tags/2.0.0-beta
Alexander Makarov 11 years ago
parent
commit
2c7e9e45c9
  1. 5
      docs/guide/database-basics.md
  2. 18
      docs/guide/debugger.md
  3. 12
      docs/guide/gii.md
  4. 2
      docs/guide/i18n.md

5
docs/guide/database-basics.md

@ -9,8 +9,8 @@ uniform API and solves some inconsistencies between different DBMS. By default Y
- [SQLite](http://sqlite.org/) - [SQLite](http://sqlite.org/)
- [PostgreSQL](http://www.postgresql.org/) - [PostgreSQL](http://www.postgresql.org/)
- [CUBRID](http://www.cubrid.org/) (version 9.1.0 and higher). - [CUBRID](http://www.cubrid.org/) (version 9.1.0 and higher).
- Oracle - [Oracle](http://www.oracle.com/us/products/database/overview/index.html)
- MSSQL - [MSSQL](https://www.microsoft.com/en-us/sqlserver/default.aspx)
Configuration Configuration
@ -42,6 +42,7 @@ return [
// ... // ...
]; ];
``` ```
Please refer to the [PHP manual](http://www.php.net/manual/en/function.PDO-construct.php) for more details Please refer to the [PHP manual](http://www.php.net/manual/en/function.PDO-construct.php) for more details
on the format of the DSN string. on the format of the DSN string.

18
docs/guide/debugger.md

@ -7,19 +7,21 @@ about currently opened page while using debugger you can analyze data collected
Installing and configuring Installing and configuring
-------------------------- --------------------------
How to use it
-------------
Add these lines to your config file: Add these lines to your config file:
``` ```
'preload' => ['debug'], 'preload' => ['debug'],
'modules' => [ 'modules' => [
'debug' => ['yii\debug\Module'] 'debug' => ['yii\debug\Module']
] ]
``` ```
**Watch out: by default the debug module only works when browsing the website from the localhost. If you want to use it on a remote (staging) server, add the parameter allowedIPs to the config to whitelist your IP.** **Watch out: by default the debug module only works when browsing the website from the localhost. If you want to use it
on a remote (staging) server, add the parameter allowedIPs to the config to whitelist your IP.**
How to use it
-------------
Creating your own panels Creating your own panels
------------------------ ------------------------

12
docs/guide/gii.md

@ -7,17 +7,17 @@ as well as complete CRUD controllers.
Installing and configuring Installing and configuring
-------------------------- --------------------------
How to use it
-------------
Add these lines to your config file: Add these lines to your config file:
```php ```php
'modules' => [ 'modules' => [
'gii' => ['yii\gii\Module'] 'gii' => ['yii\gii\Module']
] ]
``` ```
How to use it
-------------
Creating your own templates Creating your own templates
--------------------------- ---------------------------

2
docs/guide/i18n.md

@ -264,3 +264,5 @@ Formatters
In order to use formatters you need to install and enable [intl](http://www.php.net/manual/en/intro.intl.php) PHP In order to use formatters you need to install and enable [intl](http://www.php.net/manual/en/intro.intl.php) PHP
extension. extension.
TBD: provided classes overview.
Loading…
Cancel
Save