Skip to content

Commit

Permalink
Finding template file - complete description of function (#999)
Browse files Browse the repository at this point in the history
  • Loading branch information
mildabre authored and dg committed Apr 7, 2023
1 parent d7f2875 commit e1f3db0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions application/cs/templates.texy
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ Cestu k šablonám odvodí presenter podle jednoduché logiky. Zkusí, zda exist
- `templates/<Presenter>/<view>.latte`
- `templates/<Presenter>.<view>.latte`

Pokud šablonu nenajde, hledá v adresáři `/templates` o úroveň výše tj. na stejné úrovni jako je adresář s třídou presenteru:

- `templates/<Presenter>/<view>.latte`
- `templates/<Presenter>.<view>.latte`

Pokud šablonu nenajde, je odpovědí [chyba 404|presenters#Chyba 404 a spol.].

Můžete také změnit view pomocí `$this->setView('jineView')`. Nebo místo dohledávání přímo určit jméno souboru se šablonou pomocí `$this->template->setFile('/path/to/template.latte')`.
Expand Down

0 comments on commit e1f3db0

Please sign in to comment.