I am trying to display a symfony template using php..However, symfony is treating my php tags as "comments"
My controller
namespace Acme\testBundle\Controller;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class testController extends Controller
{
public function helloAction()
{
//return new Response('Created product id ');
return $this->render('AcmetestBundle:test:test.html.php');
}
}
My template : test.html.php
<?php var_dump("Hello world");?>
My output :
<!--?php var_dump("Hello world");?-->
How can I fix this?