missing_layout.ctp 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. *
  4. * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
  5. * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  6. *
  7. * Licensed under The MIT License
  8. * For full copyright and license information, please see the LICENSE.txt
  9. * Redistributions of files must retain the above copyright notice.
  10. *
  11. * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  12. * @link http://cakephp.org CakePHP(tm) Project
  13. * @since 0.10.0
  14. * @license http://www.opensource.org/licenses/mit-license.php MIT License
  15. */
  16. ?>
  17. <h2>Missing Layout</h2>
  18. <p class="error">
  19. <strong>Error: </strong>
  20. <?= sprintf('The layout file <em>%s</em> can not be found or does not exist.', h($file)); ?>
  21. </p>
  22. <p>
  23. <?php echo __d('cake_dev', 'Confirm you have created the file: %s', h($file)); ?>
  24. in one of the following paths:
  25. </p>
  26. <ul>
  27. <?php
  28. $paths = $this->_paths($this->plugin);
  29. foreach ($paths as $path):
  30. if (strpos($path, CORE_PATH) !== false) {
  31. continue;
  32. }
  33. echo sprintf('<li>%s%s</li>', h($path), h($file));
  34. endforeach;
  35. ?>
  36. </ul>
  37. <p class="notice">
  38. <strong>Notice: </strong>
  39. <?= sprintf('If you want to customize this error message, create %s', APP_DIR . DS . 'Template' . DS . 'Error' . DS . 'missing_layout.ctp'); ?>
  40. </p>
  41. <?= $this->element('exception_stack_trace'); ?>