Custom Helper 'Class not found' error
Permalink
I'm attempting to load in a custom helper
If I then try to load the helper via core::make I get a Class not found error
What am I doing wrong?
//Folder structure application > src > CustomHelper.php //In the CustomHelper file namespace Application\Core; use Concrete\Core\Localization\Service\Date; class CustomHelper extends Date { ... } //in application/bootstrap/app Core::bind('helper/date', function() { return new \Application\Core\CustomHelper(); });
If I then try to load the helper via core::make I get a Class not found error
$ch = Core::make('helper/date'); //returns the following error Class 'Application\Core\CustomHelper' not found
What am I doing wrong?
The issue cropped back up again when I updated to v5.8,
issue resolved over herehttps://www.concrete5.org/community/forums/customizing_c5/upgrading-...
issue resolved over herehttps://www.concrete5.org/community/forums/customizing_c5/upgrading-...
Using \Core\ in the Applications namespace needs to be `Src` not `Core`
I think I've got mixed up with the core treatment of the src folder