missing_behavior.ctp 1.6 KB

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