404.php 678 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * Fuel is a fast, lightweight, community driven PHP5 framework.
  4. *
  5. * @package Fuel
  6. * @version 1.5
  7. * @author Fuel Development Team
  8. * @license MIT License
  9. * @copyright 2010 - 2013 Fuel Development Team
  10. * @link http://fuelphp.com
  11. */
  12. /**
  13. * The welcome 404 view model.
  14. *
  15. * @package app
  16. * @extends ViewModel
  17. */
  18. class View_Welcome_404 extends ViewModel
  19. {
  20. /**
  21. * Prepare the view data, keeping this in here helps clean up
  22. * the controller.
  23. *
  24. * @return void
  25. */
  26. public function view()
  27. {
  28. $messages = array('Aw, crap!', 'Bloody Hell!', 'Uh Oh!', 'Nope, not here.', 'Huh?');
  29. $this->title = $messages[array_rand($messages)];
  30. }
  31. }