Monday 12 May 2014 3:33:54 pm - 8 replies
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.
Wednesday 02 July 2014 2:48:39 pm
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
You must be logged in to post messages in this topic!