/
Index.php
50 lines (47 loc) · 1.03 KB
/
Index.php
1
2
3
4
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
/**
* Index mockup
*
* This class behaves as if the /index was called
* It is not currently 100% working, but most of it
* is actually in place.
*
* @todo Add content to layout.
*/
class PHP_App_Index extends PHP_App_Base
{
/**
* Type of layout to use.
*
* @var String The layout to use.
*/
protected $_layout = 'main';
/**
* The default action
*
* This is the default action called when this
* controller is invoked.
*
* @var string The default action to invoke.
*/
protected $_action_default = 'index';
/**
* The output to display. This is mostly an
* example of anything running with variables.
*
* @var string The output variable
*/
public $output = '';
/**
* Action index.
*
* This action index when the /index root is invoked.
*
* @see $this->output
* @return void
*/
public function actionIndex()
{
$this->output = 'Welcome to the 2008 Test Fest';
}
}