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.

detail.php 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. 'Application Version' => $panel->data['application']['version'],
  13. 'Environment' => $panel->data['application']['env'],
  14. 'Debug Mode' => $panel->data['application']['debug'] ? 'Yes' : 'No',
  15. ],
  16. ]);
  17. if (!empty($extensions)) {
  18. echo $this->render('table', [
  19. 'caption' => 'Installed Extensions',
  20. 'values' => $extensions,
  21. ]);
  22. }
  23. $memcache = 'Disabled';
  24. if ($panel->data['php']['memcache']) {
  25. $memcache = 'Enabled (memcache)';
  26. } elseif ($panel->data['php']['memcached']) {
  27. $memcache = 'Enabled (memcached)';
  28. }
  29. echo $this->render('table', [
  30. 'caption' => 'PHP Configuration',
  31. 'values' => [
  32. 'PHP Version' => $panel->data['php']['version'],
  33. 'Xdebug' => $panel->data['php']['xdebug'] ? 'Enabled' : 'Disabled',
  34. 'APC' => $panel->data['php']['apc'] ? 'Enabled' : 'Disabled',
  35. 'Memcache' => $memcache,
  36. ],
  37. ]);
  38. echo $panel->getPhpInfo();