missing_action.ctp 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. ?>
  19. <h2><?php echo __d('cake_dev', 'Missing Method in %s', $controller); ?></h2> <p class="error">
  20. <strong><?php echo __d('cake_dev', 'Error'); ?>: </strong>
  21. <?php echo __d('cake_dev', 'The action %1$s is not defined in controller %2$s', '<em>' . $action . '</em>', '<em>' . $controller . '</em>'); ?>
  22. </p>
  23. <p class="error">
  24. <strong><?php echo __d('cake_dev', 'Error'); ?>: </strong>
  25. <?php echo __d('cake_dev', 'Create %1$s%2$s in file: %3$s.', '<em>' . $controller . '::</em>', '<em>' . $action . '()</em>', APP_DIR . DS . 'Controller' . DS . $controller . '.php'); ?>
  26. </p>
  27. <pre>
  28. &lt;?php
  29. class <?php echo $controller; ?> extends AppController {
  30. <strong>
  31. public function <?php echo $action; ?>() {
  32. }
  33. </strong>
  34. }
  35. </pre>
  36. <p class="notice">
  37. <strong><?php echo __d('cake_dev', 'Notice'); ?>: </strong>
  38. <?php echo __d('cake_dev', 'If you want to customize this error message, create %s', APP_DIR . DS . 'View' . DS . 'Errors' . DS . 'missing_action.ctp'); ?>
  39. </p>
  40. <?php echo $this->element('exception_stack_trace'); ?>