missing_datasource.ctp 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
  4. * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  5. *
  6. * Licensed under The MIT License
  7. * For full copyright and license information, please see the LICENSE.txt
  8. * Redistributions of files must retain the above copyright notice.
  9. *
  10. * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  11. * @link http://cakephp.org CakePHP(tm) Project
  12. * @since 2.0.0
  13. * @license http://www.opensource.org/licenses/mit-license.php MIT License
  14. */
  15. $pluginDot = empty($plugin) ? null : $plugin . '.';
  16. ?>
  17. <h2>Missing Datasource</h2>
  18. <p class="error">
  19. <strong>Error: </strong>
  20. <?= sprintf('Datasource class <em>%s</em> could not be found.', h($pluginDot . $class)); ?>
  21. <?php if (isset($message)): ?>
  22. <?= h($message); ?>
  23. <?php endif; ?>
  24. </p>
  25. <p class="notice">
  26. <strong>Notice: </strong>
  27. <?= sprintf('If you want to customize this error message, create %s', APP_DIR . DS . 'Template' . DS . 'Error' . DS . 'missing_datasource.ctp'); ?>
  28. </p>
  29. <?= $this->element('exception_stack_trace'); ?>