delboy1978uk /
bone-view
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Bone\View; |
||
| 4 | |||
| 5 | |||
| 6 | interface ViewEngineInterface |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * ViewEngine constructor. |
||
| 10 | * @param $viewPath |
||
| 11 | * @param null $extension |
||
|
0 ignored issues
–
show
Documentation
Bug
introduced
by
Loading history...
|
|||
| 12 | */ |
||
| 13 | public function __construct($viewPath, $extension = null); |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param $view |
||
| 17 | * @param $vars |
||
| 18 | * @return mixed |
||
| 19 | */ |
||
| 20 | public function render($view, array $vars = []); |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Add a new template folder for grouping templates under different namespaces. |
||
| 24 | * @param string $name |
||
| 25 | * @param string $directory |
||
| 26 | * @param boolean $fallback |
||
| 27 | * @return self |
||
| 28 | */ |
||
| 29 | public function addFolder($name, $directory, $fallback = false); |
||
| 30 | } |