missing_datasource.ctp 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  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 2.0
  16. * @license http://www.opensource.org/licenses/mit-license.php MIT License
  17. */
  18. $pluginDot = empty($plugin) ? null : $plugin . '.';
  19. ?>
  20. <h2><?php echo __d('cake_dev', 'Missing Datasource'); ?></h2>
  21. <p class="error">
  22. <strong><?php echo __d('cake_dev', 'Error'); ?>: </strong>
  23. <?php echo __d('cake_dev', 'Datasource class %s could not be found.', '<em>' . h($pluginDot . $class) . '</em>'); ?>
  24. <?php if (isset($message)): ?>
  25. <?php echo h($message); ?>
  26. <?php endif; ?>
  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_datasource.ctp'); ?>
  31. </p>
  32. <?php echo $this->element('exception_stack_trace'); ?>