| Total Complexity | 2 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 4 | trait ControllerTrait |
||
| 5 | { |
||
| 6 | abstract protected function request(); |
||
| 7 | abstract protected function setData($key, $value); |
||
| 8 | |||
| 9 | protected function initPaths() |
||
| 10 | { |
||
| 11 | $this->setData('path', $this->config()->get('app/path')); |
||
|
|
|||
| 12 | $this->setData('url/app', $this->request()->getAppUrl()); |
||
| 13 | $this->setData('url/lang', $this->request()->getUrl(['lang'])); |
||
| 14 | $this->setData('url/current', $this->request()->getUrl()); |
||
| 15 | } |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Called (optionally) by each method. |
||
| 19 | */ |
||
| 20 | protected function init($action) |
||
| 22 | } |
||
| 23 | } |
||
| 24 |