missing_cell_template.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. /**
  3. * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
  4. * Copyright (c) Cake Software Foundation, Inc. (https://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. (https://cakefoundation.org)
  11. * @link https://cakephp.org CakePHP(tm) Project
  12. * @since 3.0.0
  13. * @license https://opensource.org/licenses/mit-license.php MIT License
  14. * @var string $name
  15. * @var string $file
  16. * @var array<string> $paths
  17. */
  18. $this->layout = 'dev_error';
  19. $this->assign('templateName', 'missing_cell_view.php');
  20. $this->assign('title', 'Missing Cell View');
  21. $this->start('subheading');
  22. printf('The view for <em>%sCell</em> was not be found.', h($name));
  23. $this->end();
  24. $this->start('file');
  25. ?>
  26. <p>
  27. Confirm you have created the file: "<?= h($file) ?>"
  28. in one of the following paths:
  29. </p>
  30. <ul>
  31. <?php
  32. foreach ($paths as $path) :
  33. if (strpos($path, CORE_PATH) !== false) {
  34. continue;
  35. }
  36. echo sprintf('<li>%sCell/%s/%s</li>', h($path), h($name), h($file));
  37. endforeach;
  38. ?>
  39. </ul>
  40. <?php $this->end(); ?>