IndexBaseController Class Reference
[StaticMainPage]
Controller for front page. More...
Inheritance diagram for
IndexBaseController:
Public Member Functions |
|
action_index ($page_data) | |
Show front page. |
|
get_routes () | |
Return array of urls which are handled by
this controller. |
Detailed Description
Controller for front page.
Routes view/templates/[lang]/index.tpl.php to the main page
Definition at line 17 of file index.base.controller.php.
Member Function Documentation
IndexBaseController::action_index | ( | $ | page_data | ) |
Show front page.
- Parameters:
-
Pagedata $page_data
Definition at line 32 of file index.base.controller.php.
00032 { 00033 $page_data->head->title = Config::get_value(Config::TITLE); 00034 $view = ViewFactory::create_view(IViewFactory::CONTENT, 'index', $page_data); 00035 $view->render(); 00036 }
IndexBaseController::get_routes | ( | ) |
Return array of urls which are handled by this controller.
Reimplemented from ControllerBase.
Definition at line 21 of file index.base.controller.php.
00021 { 00022 return array( 00023 new ExactMatchRoute('.', $this, 'index') 00024 ); 00025 }
The documentation for this class was generated from the following file:
- gyro/modules/staticmainpage/controller/index.base.controller.php