PhpEngine::setCharset()

setCharset(string $charset) Sets the charset to use. Parameters string $charset The charset

PhpEngine::renderResponse()

Response renderResponse(string $view, array $parameters = array(), Response $response = null) Renders a view and returns a Response. Parameters string $view The view name array $parameters An array of parameters to pass to the view Response $response A Response instance Return Value Response A Response instance Exceptions RuntimeException if the template cannot be rendered

PhpEngine::render()

string render(string|TemplateReferenceInterface $name, array $parameters = array()) Renders a template. Parameters string|TemplateReferenceInterface $name A template name or a TemplateReferenceInterface instance array $parameters An array of parameters to pass to the template Return Value string The evaluated template as a string Exceptions RuntimeException if the template cannot be rendered

PhpEngine::offsetUnset()

offsetUnset(string $name) Removes a helper. Parameters string $name The helper name Exceptions LogicException

PhpEngine::offsetSet()

offsetSet(HelperInterface $name, string $value) Sets a helper. Parameters HelperInterface $name The helper instance string $value An alias

PhpEngine::offsetGet()

HelperInterface offsetGet(string $name) Gets a helper value. Parameters string $name The helper name Return Value HelperInterface The helper value Exceptions InvalidArgumentException if the helper is not defined

PhpEngine::offsetExists()

bool offsetExists(string $name) Returns true if the helper is defined. Parameters string $name The helper name Return Value bool true if the helper is defined, false otherwise

PhpEngine::has()

bool has(string $name) Returns true if the helper if defined. Parameters string $name The helper name Return Value bool true if the helper is defined, false otherwise

PhpEngine::getLoader()

LoaderInterface getLoader() Gets the loader associated with this engine. Return Value LoaderInterface A LoaderInterface instance

PhpEngine::getGlobals()

array getGlobals() Returns the assigned globals. Return Value array