I am rendering a PHP template with Symfony 2, the template code I have:
phptemplate.html.php:
...
<?php echo $view->render('MyBundle:Def:info.html.twig', array('m' => $m)) ?>
...
MyBundle:Def:info.html.twig:
abc
{{ url('form_individual') }}
{{ m.test }}
abc
Output display result:
abc
{{ url('form_individual') }}
{{ m.test }}
abc
Variables are not rendered but instead are displayed as text, why?
test? If it's a block, then you've defined it incorrectly.echo get_class($view)what do you get?