WelcomeController.php 702 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * Welcome Controller
  4. **
  5. *
  6. * @package ClanCatsFramework
  7. * @author Mario Döring <[email protected]>
  8. * @version 2.0
  9. * @copyright 2010 - 2014 ClanCats GmbH
  10. *
  11. */
  12. class WelcomeController extends CCViewController
  13. {
  14. /**
  15. * The default theme
  16. * if you wish you can render this controller with a special theme
  17. *
  18. * @var string
  19. */
  20. protected $_theme = null;
  21. /**
  22. * the index function is just "function <controller_name>Index() {}"
  23. */
  24. public function action_index()
  25. {
  26. $this->theme->topic = "Willkommen";
  27. $this->view = $this->theme->view( 'welcome', array(
  28. 'runtime_name' => ClanCats::runtime( 'name' ),
  29. 'environment' => ClanCats::environment(),
  30. ));
  31. }
  32. }