Problem loading helper for an "external form" controller
Permalink
Hi folks,
I am setting up an *external form* for an online application.
After the check and the sanitization of the data, I need to collect them to send an email.
But I cannot invoke helpers (for validation or for emailing) since I get an error:
The following code
Gives the following result:
It's the same with the validation or images helpers.
It works with other controllers but not with this one.
Thank you for your help!
marc
I am setting up an *external form* for an online application.
After the check and the sanitization of the data, I need to collect them to send an email.
But I cannot invoke helpers (for validation or for emailing) since I get an error:
The following code
$mh = Core::make('helper/mail');
Gives the following result:
Class 'Applications/Block\ExternalForm\Form\Controller\Core' not found
It's the same with the validation or images helpers.
It works with other controllers but not with this one.
Thank you for your help!
marc
Under your controller namespace, try adding this:
use Core;
This should make the Core class available in your controller.