src/mvc/controllers/RichController.php 1 location
|
@@ 77-83 (lines=7) @@
|
| 74 |
|
|
| 75 |
|
$this->applyFilters($name, true, $filters, null); |
| 76 |
|
|
| 77 |
|
if ($actionClass) { |
| 78 |
|
/** @var \Micro\Mvc\Action $cl */ |
| 79 |
|
$cl = new $actionClass(); |
| 80 |
|
$view = $cl->run(); |
| 81 |
|
} else { |
| 82 |
|
$view = $this->{'action'.ucfirst($name)}(); |
| 83 |
|
} |
| 84 |
|
|
| 85 |
|
$this->response = $this->response->withHeader('Content-Type', $this->format); |
| 86 |
|
|
src/mvc/controllers/ViewController.php 1 location
|
@@ 57-63 (lines=7) @@
|
| 54 |
|
return $result; |
| 55 |
|
} |
| 56 |
|
|
| 57 |
|
if ($actionClass) { |
| 58 |
|
/** @var \Micro\mvc\Action $cl */ |
| 59 |
|
$cl = new $actionClass(); |
| 60 |
|
$view = $cl->run(); |
| 61 |
|
} else { |
| 62 |
|
$view = $this->{'action'.ucfirst($name)}(); |
| 63 |
|
} |
| 64 |
|
|
| 65 |
|
if (is_object($view)) { |
| 66 |
|
$view->module = get_class($this->module); |