選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

README.md 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. Debug Extension for Yii 2
  2. =========================
  3. This extension provides a debugger for Yii 2 applications. When this extension is used,
  4. a debugger toolbar will appear at the bottom of every page. The extension also provides
  5. a set of standalone pages to display more detailed debug information.
  6. This repository is a git submodule of <https://github.com/yiisoft/yii2>.
  7. Please submit issue reports and pull requests to the main repository.
  8. For license information check the [LICENSE](LICENSE.md)-file.
  9. Installation
  10. ------------
  11. The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
  12. Either run
  13. ```
  14. php composer.phar require --prefer-dist yiisoft/yii2-debug
  15. ```
  16. or add
  17. ```
  18. "yiisoft/yii2-debug": "~2.0.0"
  19. ```
  20. to the require section of your `composer.json` file.
  21. Usage
  22. -----
  23. Once the extension is installed, simply modify your application configuration as follows:
  24. ```php
  25. return [
  26. 'bootstrap' => ['debug'],
  27. 'modules' => [
  28. 'debug' => 'yii\debug\Module',
  29. // ...
  30. ],
  31. ...
  32. ];
  33. ```
  34. You will see a debugger toolbar showing at the bottom of every page of your application.
  35. You can click on the toolbar to see more detailed debug information.