missing_database.ctp 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. *
  4. * PHP 5
  5. *
  6. * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
  7. * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  8. *
  9. * Licensed under The MIT License
  10. * For full copyright and license information, please see the LICENSE.txt
  11. * Redistributions of files must retain the above copyright notice.
  12. *
  13. * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  14. * @link http://cakephp.org CakePHP(tm) Project
  15. * @since CakePHP(tm) v 0.10.0.1076
  16. * @license http://www.opensource.org/licenses/mit-license.php MIT License
  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', 'Scaffold requires a database connection'); ?>
  23. </p>
  24. <p class="error">
  25. <strong><?php echo __d('cake_dev', 'Error'); ?>: </strong>
  26. <?php echo __d('cake_dev', 'Confirm you have created the file: %s', APP_DIR . DS . 'Config' . DS . 'datasources.php'); ?>
  27. </p>
  28. <p class="notice">
  29. <strong><?php echo __d('cake_dev', 'Notice'); ?>: </strong>
  30. <?php echo __d('cake_dev', 'If you want to customize this error message, create %s', APP_DIR . DS . 'View' . DS . 'Error' . DS . 'missing_database.ctp'); ?>
  31. </p>
  32. <?php echo $this->element('exception_stack_trace'); ?>