Here is example implementation of a custom view helper script. Step 1. Creating Zend Framework 2 Helper. //file : App_folder/module/Module_name/src/Module_name/View/Helper/SayHello.php namespace Application\View\Helper; use Zend\View\Helper\AbstractHelper; class SayHello extends AbstractHelper{ public function __invoke($name = 'Unnamed'){ return “$name , this is Zend Framework 2 View Helper”; } } Step 2. Registering the Zend Framework 2 Helper. //file : […]