missing_plugin.ctp 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 2.0
  16. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  17. */
  18. ?>
  19. <h2><?php echo __d('cake_dev', 'Missing Plugin'); ?></h2>
  20. <p class="error">
  21. <strong><?php echo __d('cake_dev', 'Error'); ?>: </strong>
  22. <?php echo __d('cake_dev', 'The application is trying to load a file from the %s plugin', '<em>' . $plugin . '</em>'); ?>
  23. </p>
  24. <p class="error">
  25. <strong><?php echo __d('cake_dev', 'Error'); ?>: </strong>
  26. <?php echo __d('cake_dev', 'Make sure your plugin %s is in the ' . APP_DIR . DS . 'Plugin directory and was loaded', $plugin); ?>
  27. </p>
  28. <pre>
  29. &lt;?php
  30. CakePlugin::load('<?php echo $plugin?>');
  31. </pre>
  32. <p class="notice">
  33. <strong><?php echo __d('cake_dev', 'Loading all plugins'); ?>: </strong>
  34. <?php echo __d('cake_dev', 'If you wish to load all plugins at once, use the following line in your ' . APP_DIR . DS . 'Config' . DS . 'bootstrap.php file'); ?>
  35. </p>
  36. <pre>
  37. CakePlugin::loadAll();
  38. </pre>
  39. <p class="notice">
  40. <strong><?php echo __d('cake_dev', 'Notice'); ?>: </strong>
  41. <?php echo __d('cake_dev', 'If you want to customize this error message, create %s', APP_DIR . DS . 'View' . DS . 'Errors' . DS . 'missing_plugin.ctp'); ?>
  42. </p>
  43. <?php echo $this->element('exception_stack_trace'); ?>