12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?php
- /**
- * Fuel is a fast, lightweight, community driven PHP5 framework.
- *
- * @package Fuel
- * @version 1.5
- * @author Fuel Development Team
- * @license MIT License
- * @copyright 2010 - 2013 Fuel Development Team
- * @link http://fuelphp.com
- */
- /**
- * The Welcome Controller.
- *
- * A basic controller example. Has examples of how to set the
- * response body and status.
- *
- * @package app
- * @extends Controller
- */
- class Controller_Welcome extends Controller
- {
- /**
- * The basic welcome message
- *
- * @access public
- * @return Response
- */
- public function action_index()
- {
- return Response::forge(View::forge('welcome/index'));
- }
- /**
- * A typical "Hello, Bob!" type example. This uses a ViewModel to
- * show how to use them.
- *
- * @access public
- * @return Response
- */
- public function action_hello()
- {
- return Response::forge(ViewModel::forge('welcome/hello'));
- }
- /**
- * The 404 action for the application.
- *
- * @access public
- * @return Response
- */
- public function action_404()
- {
- return Response::forge(ViewModel::forge('welcome/404'), 404);
- }
- }
|