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 : […]
This is something that was bugging me for a while. How can multiple developers work on same wordpress without messing up the code ? The answer came from two wordpress variables : WP_SITEURL and WP_HOME. If the two variables are set , wordpress blog do not get them from the database. Step 1. Adding this […]