Let's imagine that you have a helper app/code/SliRx/News/Helper/Date.php.
You can get the helper from template (.phtml file) like this:
You can get the helper from template (.phtml file) like this:
$helper = $this->helper('SliRx\News\Helper\Date');
No comments:
Post a Comment