Using Symfony 5 I’ve got a search where users can retrieve a list of clients from a database. I want to now display this as a list so that the user can click on the correct client to retrieve the client’s data. I imagine this is something that’s done all the time but I’m new to all this and can’t find any guidance.
My questions are:
- Would I have to use the same php controller as the initial client search one, because otherwise I don’t see how I pass around the array of clients between controllers? So presumably make the initial client search section no longer visible and the list of clients now visible?
- What is the best way of displaying this list so that the user can click on the client?
maybe a select tag, created dynamically using something like this.
It feels like should be an easier way of doing this …
Many thanks in advance
Source: Symfony Questions
Was this helpful?
0 / 0