This site has been archived. To learn more about our current products Ibexa Content, Ibexa Experience, Ibexa Commerce head over to the Ibexa Developer Portal

eZ Community » Forums » Discussions » Create a feedback form in eZ Publish...

Monday 12 May 2014 3:33:54 pm - 8 replies

» Read full tutorial


The goal of this tutorial is to create a simple feedback form on a standard eZ Publish 5 website. Content editors will be able to edit introduction and confirmation messages from the administration interface. User feedback will be emailed to webmaster upon form submission.

Tuesday 13 May 2014 3:17:48 pm

Thank you very much for this brilliant tutorial Benjamin!!

Keep'em coming big-smile.gif Emoticon

Saturday 24 May 2014 3:47:09 am

That was a great one!

Forms are not that simple to handle in Symfony happy.gif Emoticon

Monday 26 May 2014 9:18:46 am

Thanks Amir,

Symfony forms are really powerful and deserve to be looked at. We're trying to make the process a little bit more straightforward, feel free to tell what you think should be further done happy.gif Emoticon

Wednesday 02 July 2014 11:25:22 am

Thanks for this great tutorial Benjamin!

Does your bundle provide something to save data into the eZ Publish database, instead of send an email (allowing people to see those data via the admin interface)?  If not, how can it be done?

Wednesday 02 July 2014 2:48:39 pm

Hi Julien,

there is nothing yet to persist data in the bundle but it can be easily done by creating a form handler to persist Doctrine entities (see Symfony's Book to find out how it works). Since 5.3, eZPublish already uses Doctrine to persist data.

You can use entities as your form types' data classes and persist them in a dedicated table or you can create a global FormData entity to store everything in the same table, it really depends on what features you want to provide (browsing, export, ...).

As for the admin interface, you'll have to create a legacy module and load your symfony services ( probably doctrine entity manager) using ezpKernel::instance()->getServiceContainer()->get().

Feel free to create your own bundle based on ezforms-bundle, I'm sure this can be useful to many people happy.gif Emoticon

Wednesday 09 July 2014 4:06:00 pm

Julien, I just updated the bundle's documentation and added an example of how you could create a handler to persist doctrine entities.

The example is at the beginning of the handlers chapter

Saturday 12 July 2014 7:09:13 am

The reply has been removed because of violation of forum rules.

Tuesday 02 December 2014 4:05:37 pm


Modified on Tuesday 02 December 2014 4:06:26 pm by Marie Duchemin


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from