__construct() __construct(array $options = array()) Creates an instance of Twig. Parameters array $options Options.
render() render(string $template, array $context = array()) : string Render a template. Parameters string $template Template name. array $context Parameters to pass to the template. Returns string — Rendered template.
renderString() renderString(string $template, array $context = array()) : string Render a string template. Parameters string $template Template string. array $context Parameters to pass to the template. Returns string — Rendered template.
registerExtensions() registerExtensions(array $extensions) Register extensions. Parameters array $extensions Extensions.
registerFilters() registerFilters(array $filters) Register filters. Parameters array $filters Filters.
registerGlobals() registerGlobals(array $globals) Register globals. Parameters array $globals Globals.
registerFunctions() registerFunctions(array $functions) Register functions. Parameters array $functions Functions.