After enabling the php engine by editing the config/packages/framework.yaml, I am now facing the "The template ::/test/test.html.php" does not exit" error !!
Controller :
namespace App\Controller;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class TestController extends Controller
{
/**
* @Route("/test.html.php", name="testphp")
*/
public function testphp(){
return $this->render('test/test.html.php');
}
}
Path: Templates/test/test.html.php
* @Route("/test", name="testphp")