missing_controller.ctp 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. *
  4. * PHP 5
  5. *
  6. * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
  7. * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
  8. *
  9. * Licensed under The MIT License
  10. * Redistributions of files must retain the above copyright notice.
  11. *
  12. * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
  13. * @link http://cakephp.org CakePHP(tm) Project
  14. * @package Cake.View.Errors
  15. * @since CakePHP(tm) v 0.10.0.1076
  16. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  17. */
  18. $pluginDot = empty($plugin) ? null : $plugin . '.';
  19. ?>
  20. <h2><?php echo __d('cake_dev', 'Missing Controller'); ?></h2>
  21. <p class="error">
  22. <strong><?php echo __d('cake_dev', 'Error'); ?>: </strong>
  23. <?php echo __d('cake_dev', '%s could not be found.', '<em>' . $pluginDot . $class . '</em>'); ?>
  24. </p>
  25. <p class="error">
  26. <strong><?php echo __d('cake_dev', 'Error'); ?>: </strong>
  27. <?php echo __d('cake_dev', 'Create the class %s below in file: %s', '<em>' . $class . '</em>', (empty($plugin) ? APP_DIR . DS : CakePlugin::path($plugin)) . 'Controller' . DS . $class . '.php'); ?>
  28. </p>
  29. <pre>
  30. &lt;?php
  31. class <?php echo $class . ' extends ' . $plugin; ?>AppController {
  32. }
  33. </pre>
  34. <p class="notice">
  35. <strong><?php echo __d('cake_dev', 'Notice'); ?>: </strong>
  36. <?php echo __d('cake_dev', 'If you want to customize this error message, create %s', APP_DIR . DS . 'View' . DS . 'Errors' . DS . 'missing_controller.ctp'); ?>
  37. </p>
  38. <?php echo $this->element('exception_stack_trace'); ?>