Trying to figure out how to create a helper class as Magento 1? You’ll need to create a Data class which extends Magento\Framework\App\Helper\AbstractHelper class , and use the functions defined in it.
Here’s a practical example:
Then in your template you’ll be able to use it like so:
helper('Jeff\MyAttribute\Helper\Data'); echo $myhelper->func(); ?>