| Conditions | 3 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public function template($controller = null, $action = null){ |
||
| 27 | if(is_null($controller)){ |
||
| 28 | $controller = $this->controller; |
||
| 29 | } |
||
| 30 | if(is_null($action)){ |
||
| 31 | $action = $this->action; |
||
| 32 | } |
||
| 33 | |||
| 34 | $template = new Template($this->locator['loader']->path('Bricks\Frameworks\Base\Template\\' . $controller . '\\' . $action, 'html')); |
||
| 35 | $template->controller = $controller; |
||
| 36 | $template->action = $action; |
||
| 37 | |||
| 38 | return $template; |
||
| 39 | } |
||
| 40 | } |
||
| 41 |