EngineInterface::exists()

bool exists(string|TemplateReferenceInterface $name)

Returns true if the template exists.

Parameters

string|TemplateReferenceInterface $name A template name or a TemplateReferenceInterface instance

Return Value

bool true if the template exists, false otherwise

Exceptions

RuntimeException if the engine cannot handle the template name
doc_Symfony
2016-10-28 06:14:57
Comments
Leave a Comment

Please login to continue.