__toString()
__toString() : string
Render the viewable object.
Defines an object as viewable, and therefore can be rendered.
setTemplateIdent(string $templateIdent) : \Charcoal\View\ViewableInterface
Set the viewable object's template identifier.
Usually, a path to a file containing the template to be rendered at runtime.
string | $templateIdent | The template ID. |
Chainable
setView(\Charcoal\View\ViewInterface|array $view) : \Charcoal\View\ViewableInterface
Set the renderable view.
\Charcoal\View\ViewInterface|array | $view | The view instance to use to render. |
Chainable
view() : \Charcoal\View\ViewInterface
Retrieve the renderable view.
The object's View instance.
render(string $templateIdent = null) : string
Render the template by the given identifier.
Usually, a path to a file containing the template to be rendered at runtime.
string | $templateIdent | The template to load, parse, and render. If NULL, will use the object's previously set template identifier. |
The rendered template.