Templating\EngineInterface (Bundle\FrameworkBundle)
Symfony\Bundle\FrameworkBundle\Templating\EngineInterface
interface EngineInterface implements EngineInterface
EngineInterface is the interface each engine must implement.
Methods
string | render(string|TemplateReferenceInterface $name, array $parameters = array()) Renders a template. | from EngineInterface |
bool | exists(string|TemplateReferenceInterface $name) Returns true if the template exists. | from EngineInterface |
bool | supports(string|TemplateReferenceInterface $name) Returns true if this class is able to render the given template. | from EngineInterface |
Response | renderResponse(string $view, array $parameters = array(), Response $response = null) Renders a view and returns a Response. |
Details
public string render(string|TemplateReferenceInterface $name, array $parameters = array())
Renders a template.
public bool exists(string|TemplateReferenceInterface $name)
Returns true if the template exists.
public bool supports(string|TemplateReferenceInterface $name)
Returns true if this class is able to render the given template.
public Response renderResponse(string $view, array $parameters = array(), Response $response = null)
Renders a view and returns a Response.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Bundle/FrameworkBundle/Templating/EngineInterface.html