Register Custom Helper in application/bootstrap/app.php

Permalink
Hello Team,

I am using Concrete 5.8 and I want to register my custom helper to use in different blocks.

I have added below code in /application/bootstrap/app.php

Core::bind('helper/bridges_data', function() {
return new \Application\Src\BridgesDataHelper();
});

I have created a files inside /application/src/BridgesDataHelper.php and created a class BridgesDataHelper inside this file.

In my block controller I am calling this helper with following way:
$bridgesDatahelper = Core::make('helper/bridges_data');

I have added proper namespaces but system is giving me below error messages:


Error
Class 'Application\Src\BridgesDataHelper' not found

 
magpie replied on at Permalink Reply