hello.php 602 B

12345678910111213141516171819202122232425262728293031
  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 hello view model.
  14. *
  15. * @package app
  16. * @extends ViewModel
  17. */
  18. class View_Welcome_Hello 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. $this->name = $this->request()->param('name', 'World');
  29. }
  30. }