Qiang Xue
11 years ago
126 changed files with 6885 additions and 6748 deletions
@ -0,0 +1,46 @@ |
|||||||
|
Debug Extension for Yii 2 |
||||||
|
========================= |
||||||
|
|
||||||
|
This extension provides a debugger for Yii 2 applications. When this extension is used, |
||||||
|
a debugger toolbar will appear at the bottom of every page. The extension also provides |
||||||
|
a set of standalone pages to display more detailed debug information. |
||||||
|
|
||||||
|
|
||||||
|
Installation |
||||||
|
------------ |
||||||
|
|
||||||
|
The preferred way to install this extension is [composer](http://getcomposer.org/download/). |
||||||
|
|
||||||
|
Either run |
||||||
|
|
||||||
|
``` |
||||||
|
php composer.phar require yiisoft/yii2-debug "*" |
||||||
|
``` |
||||||
|
|
||||||
|
or add |
||||||
|
|
||||||
|
``` |
||||||
|
"yiisoft/yii2-debug": "*" |
||||||
|
``` |
||||||
|
|
||||||
|
to the require section of your `composer.json` file. |
||||||
|
|
||||||
|
|
||||||
|
Usage |
||||||
|
----- |
||||||
|
|
||||||
|
Once the extension is installed, simply modify your application configuration as follows: |
||||||
|
|
||||||
|
```php |
||||||
|
return [ |
||||||
|
'preload' => ['debug'], |
||||||
|
'modules' => [ |
||||||
|
'debug' => 'yii\debug\Module', |
||||||
|
... |
||||||
|
], |
||||||
|
... |
||||||
|
]; |
||||||
|
``` |
||||||
|
|
||||||
|
You will see a debugger toolbar showing at the bottom of every page of your application. |
||||||
|
You can click on the toolbar to see more detailed debug information. |
@ -0,0 +1,22 @@ |
|||||||
|
{ |
||||||
|
"name": "yiisoft/yii2-debug", |
||||||
|
"description": "The debugger extension for the Yii framework", |
||||||
|
"keywords": ["yii", "debug", "debugger"], |
||||||
|
"type": "yii2-extension", |
||||||
|
"license": "BSD-3-Clause", |
||||||
|
"support": { |
||||||
|
"issues": "https://github.com/yiisoft/yii2/issues?state=open", |
||||||
|
"forum": "http://www.yiiframework.com/forum/", |
||||||
|
"wiki": "http://www.yiiframework.com/wiki/", |
||||||
|
"irc": "irc://irc.freenode.net/yii", |
||||||
|
"source": "https://github.com/yiisoft/yii2" |
||||||
|
}, |
||||||
|
"minimum-stability": "dev", |
||||||
|
"require": { |
||||||
|
"yiisoft/yii2": "*" |
||||||
|
}, |
||||||
|
"autoload": { |
||||||
|
"psr-0": { "yii\\debug\\": "" } |
||||||
|
}, |
||||||
|
"target-dir": "yii/debug" |
||||||
|
} |
@ -0,0 +1,47 @@ |
|||||||
|
Gii Extension for Yii 2 |
||||||
|
======================== |
||||||
|
|
||||||
|
This extension provides a Web-based code generator, called Gii, for Yii 2 applications. |
||||||
|
You can use Gii to quickly generate models, forms, modules, CRUD, etc. |
||||||
|
|
||||||
|
|
||||||
|
Installation |
||||||
|
------------ |
||||||
|
|
||||||
|
The preferred way to install this extension is [composer](http://getcomposer.org/download/). |
||||||
|
|
||||||
|
Either run |
||||||
|
|
||||||
|
``` |
||||||
|
php composer.phar require yiisoft/yii2-gii "*" |
||||||
|
``` |
||||||
|
|
||||||
|
or add |
||||||
|
|
||||||
|
``` |
||||||
|
"yiisoft/yii2-gii": "*" |
||||||
|
``` |
||||||
|
|
||||||
|
to the require section of your `composer.json` file. |
||||||
|
|
||||||
|
|
||||||
|
Usage |
||||||
|
----- |
||||||
|
|
||||||
|
Once the extension is installed, simply modify your application configuration as follows: |
||||||
|
|
||||||
|
```php |
||||||
|
return [ |
||||||
|
'modules' => [ |
||||||
|
'gii' => 'yii\gii\Module', |
||||||
|
... |
||||||
|
], |
||||||
|
... |
||||||
|
]; |
||||||
|
``` |
||||||
|
|
||||||
|
You can then access Gii through the following URL: |
||||||
|
|
||||||
|
``` |
||||||
|
http://localhost/path/to/index.php?r=gii |
||||||
|
``` |
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 6.5 KiB |
@ -0,0 +1,22 @@ |
|||||||
|
{ |
||||||
|
"name": "yiisoft/yii2-gii", |
||||||
|
"description": "The Gii extension for the Yii framework", |
||||||
|
"keywords": ["yii", "gii", "code generator"], |
||||||
|
"type": "yii2-extension", |
||||||
|
"license": "BSD-3-Clause", |
||||||
|
"support": { |
||||||
|
"issues": "https://github.com/yiisoft/yii2/issues?state=open", |
||||||
|
"forum": "http://www.yiiframework.com/forum/", |
||||||
|
"wiki": "http://www.yiiframework.com/wiki/", |
||||||
|
"irc": "irc://irc.freenode.net/yii", |
||||||
|
"source": "https://github.com/yiisoft/yii2" |
||||||
|
}, |
||||||
|
"minimum-stability": "dev", |
||||||
|
"require": { |
||||||
|
"yiisoft/yii2": "*" |
||||||
|
}, |
||||||
|
"autoload": { |
||||||
|
"psr-0": { "yii\\gii\\": "" } |
||||||
|
}, |
||||||
|
"target-dir": "yii/gii" |
||||||
|
} |
Loading…
Reference in new issue