Erykai /
template
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Erykai\Template; |
||
| 4 | |||
| 5 | class Template extends Resource |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @param string $index |
||
| 9 | * @param string $pathFile |
||
| 10 | */ |
||
| 11 | public function nav(string $index, string $pathFile, string $module = null) |
||
| 12 | { |
||
| 13 | |||
| 14 | $this->setPage(file_get_contents(TEMPLATE_PATH . "/{$this->getThemePage()}/$pathFile.{$this->getExt()}")); |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 15 | $this->setIndex(file_get_contents(TEMPLATE_PATH . "/{$this->getThemeIndex()}/$index.{$this->getExt()}")); |
||
| 16 | $this->page(); |
||
| 17 | $this->route(); |
||
| 18 | $this->text($this->getThemeIndex(). '_'. str_replace("/","_", $pathFile), $module); |
||
| 19 | } |
||
| 20 | } |