Browse Source

moved gii and debug to extensions.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
c4bb668b90
  1. 0
      extensions/debug/DebugAsset.php
  2. 0
      extensions/debug/LogTarget.php
  3. 0
      extensions/debug/Module.php
  4. 0
      extensions/debug/Panel.php
  5. 46
      extensions/debug/README.md
  6. 0
      extensions/debug/assets/main.css
  7. 22
      extensions/debug/composer.json
  8. 0
      extensions/debug/controllers/DefaultController.php
  9. 0
      extensions/debug/panels/ConfigPanel.php
  10. 0
      extensions/debug/panels/DbPanel.php
  11. 0
      extensions/debug/panels/LogPanel.php
  12. 0
      extensions/debug/panels/ProfilingPanel.php
  13. 0
      extensions/debug/panels/RequestPanel.php
  14. 0
      extensions/debug/views/default/index.php
  15. 0
      extensions/debug/views/default/toolbar.css
  16. 0
      extensions/debug/views/default/toolbar.js
  17. 0
      extensions/debug/views/default/toolbar.php
  18. 0
      extensions/debug/views/default/view.php
  19. 0
      extensions/debug/views/layouts/main.php
  20. 0
      extensions/gii/CodeFile.php
  21. 0
      extensions/gii/Generator.php
  22. 0
      extensions/gii/GiiAsset.php
  23. 0
      extensions/gii/Module.php
  24. 47
      extensions/gii/README.md
  25. 0
      extensions/gii/assets/gii.js
  26. 0
      extensions/gii/assets/logo.png
  27. 0
      extensions/gii/assets/main.css
  28. 0
      extensions/gii/assets/typeahead.js
  29. 0
      extensions/gii/assets/typeahead.js-bootstrap.css
  30. 0
      extensions/gii/components/ActiveField.php
  31. 22
      extensions/gii/composer.json
  32. 0
      extensions/gii/controllers/DefaultController.php
  33. 0
      extensions/gii/generators/controller/Generator.php
  34. 0
      extensions/gii/generators/controller/form.php
  35. 0
      extensions/gii/generators/controller/templates/controller.php
  36. 0
      extensions/gii/generators/controller/templates/view.php
  37. 0
      extensions/gii/generators/crud/Generator.php
  38. 0
      extensions/gii/generators/crud/form.php
  39. 0
      extensions/gii/generators/crud/templates/controller.php
  40. 0
      extensions/gii/generators/crud/templates/search.php
  41. 0
      extensions/gii/generators/crud/templates/views/_form.php
  42. 0
      extensions/gii/generators/crud/templates/views/_search.php
  43. 0
      extensions/gii/generators/crud/templates/views/create.php
  44. 0
      extensions/gii/generators/crud/templates/views/index.php
  45. 0
      extensions/gii/generators/crud/templates/views/update.php
  46. 0
      extensions/gii/generators/crud/templates/views/view.php
  47. 0
      extensions/gii/generators/form/Generator.php
  48. 0
      extensions/gii/generators/form/form.php
  49. 0
      extensions/gii/generators/form/templates/action.php
  50. 0
      extensions/gii/generators/form/templates/form.php
  51. 0
      extensions/gii/generators/model/Generator.php
  52. 0
      extensions/gii/generators/model/form.php
  53. 0
      extensions/gii/generators/model/templates/model.php
  54. 0
      extensions/gii/generators/module/Generator.php
  55. 0
      extensions/gii/generators/module/form.php
  56. 0
      extensions/gii/generators/module/templates/controller.php
  57. 0
      extensions/gii/generators/module/templates/module.php
  58. 0
      extensions/gii/generators/module/templates/view.php
  59. 0
      extensions/gii/views/default/diff.php
  60. 0
      extensions/gii/views/default/index.php
  61. 0
      extensions/gii/views/default/view.php
  62. 0
      extensions/gii/views/default/view/files.php
  63. 0
      extensions/gii/views/default/view/results.php
  64. 0
      extensions/gii/views/layouts/generator.php
  65. 0
      extensions/gii/views/layouts/main.php

0
framework/yii/debug/DebugAsset.php → extensions/debug/DebugAsset.php

0
framework/yii/debug/LogTarget.php → extensions/debug/LogTarget.php

0
framework/yii/debug/Module.php → extensions/debug/Module.php

0
framework/yii/debug/Panel.php → extensions/debug/Panel.php

46
extensions/debug/README.md

@ -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
framework/yii/debug/assets/main.css → extensions/debug/assets/main.css

22
extensions/debug/composer.json

@ -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
framework/yii/debug/controllers/DefaultController.php → extensions/debug/controllers/DefaultController.php

0
framework/yii/debug/panels/ConfigPanel.php → extensions/debug/panels/ConfigPanel.php

0
framework/yii/debug/panels/DbPanel.php → extensions/debug/panels/DbPanel.php

0
framework/yii/debug/panels/LogPanel.php → extensions/debug/panels/LogPanel.php

0
framework/yii/debug/panels/ProfilingPanel.php → extensions/debug/panels/ProfilingPanel.php

0
framework/yii/debug/panels/RequestPanel.php → extensions/debug/panels/RequestPanel.php

0
framework/yii/debug/views/default/index.php → extensions/debug/views/default/index.php

0
framework/yii/debug/views/default/toolbar.css → extensions/debug/views/default/toolbar.css

0
framework/yii/debug/views/default/toolbar.js → extensions/debug/views/default/toolbar.js

0
framework/yii/debug/views/default/toolbar.php → extensions/debug/views/default/toolbar.php

0
framework/yii/debug/views/default/view.php → extensions/debug/views/default/view.php

0
framework/yii/debug/views/layouts/main.php → extensions/debug/views/layouts/main.php

0
framework/yii/gii/CodeFile.php → extensions/gii/CodeFile.php

0
framework/yii/gii/Generator.php → extensions/gii/Generator.php

0
framework/yii/gii/GiiAsset.php → extensions/gii/GiiAsset.php

0
framework/yii/gii/Module.php → extensions/gii/Module.php

47
extensions/gii/README.md

@ -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
```

0
framework/yii/gii/assets/gii.js → extensions/gii/assets/gii.js

0
framework/yii/gii/assets/logo.png → extensions/gii/assets/logo.png

Before

Width:  |  Height:  |  Size: 6.5 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

0
framework/yii/gii/assets/main.css → extensions/gii/assets/main.css

0
framework/yii/gii/assets/typeahead.js → extensions/gii/assets/typeahead.js

0
framework/yii/gii/assets/typeahead.js-bootstrap.css → extensions/gii/assets/typeahead.js-bootstrap.css vendored

0
framework/yii/gii/components/ActiveField.php → extensions/gii/components/ActiveField.php

22
extensions/gii/composer.json

@ -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"
}

0
framework/yii/gii/controllers/DefaultController.php → extensions/gii/controllers/DefaultController.php

0
framework/yii/gii/generators/controller/Generator.php → extensions/gii/generators/controller/Generator.php

0
framework/yii/gii/generators/controller/form.php → extensions/gii/generators/controller/form.php

0
framework/yii/gii/generators/controller/templates/controller.php → extensions/gii/generators/controller/templates/controller.php

0
framework/yii/gii/generators/controller/templates/view.php → extensions/gii/generators/controller/templates/view.php

0
framework/yii/gii/generators/crud/Generator.php → extensions/gii/generators/crud/Generator.php

0
framework/yii/gii/generators/crud/form.php → extensions/gii/generators/crud/form.php

0
framework/yii/gii/generators/crud/templates/controller.php → extensions/gii/generators/crud/templates/controller.php

0
framework/yii/gii/generators/crud/templates/search.php → extensions/gii/generators/crud/templates/search.php

0
framework/yii/gii/generators/crud/templates/views/_form.php → extensions/gii/generators/crud/templates/views/_form.php

0
framework/yii/gii/generators/crud/templates/views/_search.php → extensions/gii/generators/crud/templates/views/_search.php

0
framework/yii/gii/generators/crud/templates/views/create.php → extensions/gii/generators/crud/templates/views/create.php

0
framework/yii/gii/generators/crud/templates/views/index.php → extensions/gii/generators/crud/templates/views/index.php

0
framework/yii/gii/generators/crud/templates/views/update.php → extensions/gii/generators/crud/templates/views/update.php

0
framework/yii/gii/generators/crud/templates/views/view.php → extensions/gii/generators/crud/templates/views/view.php

0
framework/yii/gii/generators/form/Generator.php → extensions/gii/generators/form/Generator.php

0
framework/yii/gii/generators/form/form.php → extensions/gii/generators/form/form.php

0
framework/yii/gii/generators/form/templates/action.php → extensions/gii/generators/form/templates/action.php

0
framework/yii/gii/generators/form/templates/form.php → extensions/gii/generators/form/templates/form.php

0
framework/yii/gii/generators/model/Generator.php → extensions/gii/generators/model/Generator.php

0
framework/yii/gii/generators/model/form.php → extensions/gii/generators/model/form.php

0
framework/yii/gii/generators/model/templates/model.php → extensions/gii/generators/model/templates/model.php

0
framework/yii/gii/generators/module/Generator.php → extensions/gii/generators/module/Generator.php

0
framework/yii/gii/generators/module/form.php → extensions/gii/generators/module/form.php

0
framework/yii/gii/generators/module/templates/controller.php → extensions/gii/generators/module/templates/controller.php

0
framework/yii/gii/generators/module/templates/module.php → extensions/gii/generators/module/templates/module.php

0
framework/yii/gii/generators/module/templates/view.php → extensions/gii/generators/module/templates/view.php

0
framework/yii/gii/views/default/diff.php → extensions/gii/views/default/diff.php

0
framework/yii/gii/views/default/index.php → extensions/gii/views/default/index.php

0
framework/yii/gii/views/default/view.php → extensions/gii/views/default/view.php

0
framework/yii/gii/views/default/view/files.php → extensions/gii/views/default/view/files.php

0
framework/yii/gii/views/default/view/results.php → extensions/gii/views/default/view/results.php

0
framework/yii/gii/views/layouts/generator.php → extensions/gii/views/layouts/generator.php

0
framework/yii/gii/views/layouts/main.php → extensions/gii/views/layouts/main.php

Loading…
Cancel
Save