Contact form stopped working from C5.6 to C5.7
Permalink
Hello,
I had a contact form in C5.6 with field text, button text, errors etc. being generated in the controller.php and passed to view.php on loading the page and also after submitting the form. Now that I've changed to C5.7, all text shows on the first page load. But after the form is submitted, all text is gone, nothing loads, no form text, no errors. Looks like all my variables are being cleared after the form submission. I also pass an array with errors from the controller to the view. But it's empty after the form submission.
What has changed in C5.7 to show this behavior? I set all variable in the view function in the controller. Has the view function changed to something else after the submission? Or maybe you have some other ideas?
Thank you.
I had a contact form in C5.6 with field text, button text, errors etc. being generated in the controller.php and passed to view.php on loading the page and also after submitting the form. Now that I've changed to C5.7, all text shows on the first page load. But after the form is submitted, all text is gone, nothing loads, no form text, no errors. Looks like all my variables are being cleared after the form submission. I also pass an array with errors from the controller to the view. But it's empty after the form submission.
What has changed in C5.7 to show this behavior? I set all variable in the view function in the controller. Has the view function changed to something else after the submission? Or maybe you have some other ideas?
Thank you.
First of all, a lot has changed from 5.6 to 5.7 :D, so much that 5.6 add-ons and themes don't work out of the box for 5.7.
For your question you can read the Edit section here:
https://www.concrete5.org/documentation/developers/5.7/working-with-...