Hi,
I have a contact form that on successful submission redirects to a thank you page. Both the contact page and the thank you page are in the root of the site. I am using the contact form mechanism in one of the cookbook recipes.
When all the form date has validated ok I have this section in the form controller:
// no exception occurred, let's send a success message
if (empty($alert) === true) {
$success = 'Your message has been sent.';
$data = [];
go('contact-thank-you');
}
On my local environment the go part works. But on the live site I have an error:
go(): Argument #1 ($func) must be a valid callback, function "contact-thank-you" not found or invalid function name
Any ideas where I am going wrong?
Thanks.