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