Provides support for views using the Twig template engine.
| link |
Twig Project Website |
|---|
__construct(string $contentType)
stringThe content type to assign to the view.
twig() : \Twig_Environment
\Twig_Environment
render(array $data) : string
arrayThe data produced by an action.
string
make(string $name, string $contentType) : \HotMelt\View
stringClass or template name of the view to create. If no class by this name exists, an instance of \HotMelt\TemplateView will be returned.
stringThe content type to assign to the view.
\HotMelt\View
headers :
| type |
array |
|---|---|
statusCode :
| type |
int |
|---|---|