With symfony, I use widgets to display a form.
Once everything is filled and validated, I land on a “review” page where all the information the user entered appears as text (<span>). To do this, I created a formatter (instead of table, I called it “review”). The formatter spits out <span> instead of <input>
It works great for basic inputs, but when it comes to Choices, or Dates, it’s not working super great… I feel there is another way to have a review page without having to write a whole page just for this?
Any ideas?
Unfortunately, I find it sad that there is no concept of displaying the data already posted on a page with Symfony.
Using getValues() to recreate the whole UI with the same exact design with the exception of using <span> instead of <input> doesn’t keep the code DRY at all…
I decided to create a formatter as I mentioned in my question with adding some “if” clause to make sure everything displays correctly.