public function loadHelper($helperName, $config = array())
    {
        $helper = Helper::factory($helperName, $config);
        $name = array_key_exists("name", (array)$config) ? $config["name"] : $helper->getShortName();
        $this->set($name, $helper);
    }
public function loadHelper($helperName, $config = array())
    {
        $helper = Helper::factory($helperName, $config);
        $name = array_key_exists("name", (array)$config) ? $config["name"] : $helper->getShortName();
        $this->set($name, $helper);
    }
public function loadHelper ( $ helperName , $ config = array ( ) ) { $ helper = Helper :: factory ( $ helperName , $ config ) ; $ name = array_key_exists ( "name" , ( array ) $ config ) ? $ config [ "name" ] : $ helper -> getShortName ( ) ; $ this -> set ( $ name , $ helper ) ; }
Loads and declares a ViewHelper in the current view instance.
@param  string $helperName
@param  array  $config
@return null
Loads and declares a ViewHelper in the current view instance .