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
$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

1 Attachment

marcsublet
 
MrKDilkington replied on at Permalink Best Answer Reply
MrKDilkington
Hi marcsublet,

Under your controller namespace, try adding this:
use Core;

This should make the Core class available in your controller.
marcsublet replied on at Permalink Reply
marcsublet
Hi,
Thanks, it works like a charm!
marc