Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

twig render string

$twig = new Twig_Environment(new Twig_Loader_String());
$rendered = $twig->render(
  "Test string template: {{ result }}",
  array("result" => "Success!")
);
Source by techpunch.co.uk #
 
PREVIOUS NEXT
Tagged: #twig #render #string
ADD COMMENT
Topic
Name
7+2 =