home.php 1.15 KB
Newer Older
1 2 3 4
<?php

class Home_Controller extends Controller {

5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
	/*
	|--------------------------------------------------------------------------
	| The Default Controller
	|--------------------------------------------------------------------------
	|
	| Instead of using RESTful routes and anonymous functions, you may wish to
	| use controllers to organize your application API. You'll love them.
	|
	| To start using this controller, simple remove the default route from the
	| application "routes.php" file. Laravel is smart enough to find this
	| controller and call the default method, which is "index".
	|
	| 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.
	|
	| You can respond to requests to "/home/profile" like so:
	|
	|		public function profile()
	|		{
	|			return "This is your profile!";
	|		}
	|
	| Any extra segments are passed to the method as parameters:
	|
	|		public function profile($id)
	|		{
	|			return "This is the profile for user {$id}.";
	|		}
	|
	*/

37 38 39 40 41 42
	public function index()
	{
		return View::make('home.index');
	}

}