home.php 995 Bytes
Newer Older
1 2
<?php

3
class Home_Controller extends Base_Controller {
4

5 6 7 8 9
	/*
	|--------------------------------------------------------------------------
	| The Default Controller
	|--------------------------------------------------------------------------
	|
10 11
	| Instead of using RESTful routes and anonymous functions, you might wish
	| to use controllers to organize your application API. You'll love them.
12 13 14 15 16
	|
	| This controller responds to URIs beginning with "home", and it also
	| serves as the default controller for the application, meaning it
	| handles requests to the root of the application.
	|
17
	| You can respond to GET requests to "/home/profile" like so:
18
	|
19
	|		public function action_profile()
20 21 22 23 24 25
	|		{
	|			return "This is your profile!";
	|		}
	|
	| Any extra segments are passed to the method as parameters:
	|
26
	|		public function action_profile($id)
27 28 29 30 31 32
	|		{
	|			return "This is the profile for user {$id}.";
	|		}
	|
	*/

33
	public function action_index()
34 35 36 37 38
	{
		return View::make('home.index');
	}

}