You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.0KB

  1. <?php
  2. /* @var $panel yii\debug\panels\ConfigPanel */
  3. $extensions = $panel->getExtensions();
  4. ?>
  5. <h1>Configuration</h1>
  6. <?php
  7. echo $this->render('table', [
  8. 'caption' => 'Application Configuration',
  9. 'values' => [
  10. 'Yii Version' => $panel->data['application']['yii'],
  11. 'Application Name' => $panel->data['application']['name'],
  12. 'Environment' => $panel->data['application']['env'],
  13. 'Debug Mode' => $panel->data['application']['debug'] ? 'Yes' : 'No',
  14. ],
  15. ]);
  16. if (!empty($extensions)) {
  17. echo $this->render('table', [
  18. 'caption' => 'Installed Extensions',
  19. 'values' => $extensions,
  20. ]);
  21. }
  22. echo $this->render('table', [
  23. 'caption' => 'PHP Configuration',
  24. 'values' => [
  25. 'PHP Version' => $panel->data['php']['version'],
  26. 'Xdebug' => $panel->data['php']['xdebug'] ? 'Enabled' : 'Disabled',
  27. 'APC' => $panel->data['php']['apc'] ? 'Enabled' : 'Disabled',
  28. 'Memcache' => $panel->data['php']['memcache'] ? 'Enabled' : 'Disabled',
  29. ],
  30. ]);
  31. echo $panel->getPhpInfo();