symfony : Variable "appartements" does not exist

i’m new in symfony framework and i need help
actually i want to display data from my database (fetch appartment details in the reservation page )

  • this is the controller code :

enter image description here

  • this is twig code

enter image description here

  • so two erros apears like this :

enter image description here

  • and also this one :

===================

An exception has been thrown during the rendering of a template (“Notice: Undefined index: appartements”).

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *