I'm working on an imported project on Symfony 4.2 with Encore build system.
I installed all the module and everything is working fine.
But when I want to add a new page (requetes), I always get an 404 error.
Here is the project : https://github.com/LaboratoirePLH/ERC-MAP
- PHP 7.2.11
- PostgreSQL 9.6 with PostGIS 2.4
- Symfony 4.2 with Encore build system
- Bootstrap 4.2
- jQuery 3
- ChosenJS for jQuery (autocomplete combo box)
- DataTables for jQuery (improved data tables)
I'm running PosteGre with Laragon.
I tried to ensure mod_rewrite on apache2.
I tried too to put an .httaccess file on the public/, still not working.
I checked the route with "php bin/console debug:route" and she is listed
https://i.imgur.com/p4naU6Z.png (I can't post the image I need more reputation)
The RequetesController.php :
/**
* Page queries
*
* @Route("/requetes", name="requetes")
*/
public function index(){
return $this->render('requetes/index.html.twig');
}
And the twig, in the requetes folder :
<html>
<body>
<h1>Hello {{ $requetes }}</h1>
</body>
</html>
With the link "https://127.0.0.1:8000/requetes" I got a 404 error, and with "https://127.0.0.1:8000/" it's working.
I'm a beginner on Symfony and I really need your help.