1 | <?php |
||
16 | class View extends BaseAction |
||
17 | { |
||
18 | /** |
||
19 | * @var string name of the view |
||
20 | */ |
||
21 | public $view = 'view'; |
||
22 | |||
23 | /** |
||
24 | * @var string the name variable model in the view template |
||
25 | */ |
||
26 | public $nameVariableModel = 'model'; |
||
27 | |||
28 | /** |
||
29 | * Views existing record. |
||
30 | * @param mixed $id ID of the model to be view |
||
31 | * @return mixed response |
||
32 | */ |
||
33 | 3 | public function run($id) |
|
41 | } |
||
42 |