EliteConf
 All Data Structures Namespaces Files Functions Variables Pages
GreetingController.php
Go to the documentation of this file.
1 <?php
2 
4 {
5  public $message = '';
6 
7 
8  public function actionIndex()
9  {
10  $message = Message::model()->findByPk(5);
11  $this->message = $message->content;
12  $this->render('index', array('content'=>$this->message));
13  }
14 
15  // Uncomment the following methods and override them if needed
16  /*
17  public function filters()
18  {
19  // return the filter configuration for this controller, e.g.:
20  return array(
21  'inlineFilterName',
22  array(
23  'class'=>'path.to.FilterClass',
24  'propertyName'=>'propertyValue',
25  ),
26  );
27  }
28 
29  public function actions()
30  {
31  // return external action classes, e.g.:
32  return array(
33  'action1'=>'path.to.ActionClass',
34  'action2'=>array(
35  'class'=>'path.to.AnotherActionClass',
36  'propertyName'=>'propertyValue',
37  ),
38  );
39  }
40  */
41 }