Twig_Environment::loadTemplate
Loads a template by name.
Signature
public function loadTemplate(string
$name,
[integer
$index = null] )
Parameters
$name
— string- The template name
$index
— integer- The index if it is an embedded template
Returns
- Twig_TemplateInterface
- A template instance representing the given template name