Problem loading helper for an "external form" controller

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!

1 Attachment

View Replies: View Best Answer
MrKDilkington replied on at Permalink Best Answer Reply
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
Thanks, it works like a charm!