missing_connection.ctp 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. *
  4. * PHP 5
  5. *
  6. * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
  7. * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
  8. *
  9. * Licensed under The MIT License
  10. * Redistributions of files must retain the above copyright notice.
  11. *
  12. * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
  13. * @link http://cakephp.org CakePHP(tm) Project
  14. * @package Cake.View.Errors
  15. * @since CakePHP(tm) v 0.10.0.1076
  16. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  17. */
  18. ?>
  19. <h2><?php echo __d('cake_dev', 'Missing Database Connection'); ?></h2>
  20. <p class="error">
  21. <strong><?php echo __d('cake_dev', 'Error'); ?>: </strong>
  22. <?php echo __d('cake_dev', 'A Database connection using "%s" was missing or unable to connect. ', $class); ?>
  23. <br />
  24. <?php
  25. if (isset($message)):
  26. echo __d('cake_dev', 'The database server returned this error: %s', $message);
  27. endif;
  28. ?>
  29. </p>
  30. <?php if (!$enabled) : ?>
  31. <p class="error">
  32. <strong><?php echo __d('cake_dev', 'Error'); ?>: </strong>
  33. <?php echo __d('cake_dev', '%s driver is NOT enabled', $class); ?>
  34. </p>
  35. <?php endif; ?>
  36. <p class="notice">
  37. <strong><?php echo __d('cake_dev', 'Notice'); ?>: </strong>
  38. <?php echo __d('cake_dev', 'If you want to customize this error message, create %s.', APP_DIR . DS . 'View' . DS . 'Errors' . DS . basename(__FILE__)); ?>
  39. </p>
  40. <?php
  41. echo $this->element('exception_stack_trace');