public function registerHelper($helper, $class)
    {
        if (array_key_exists($helper, $this->helpers)) {
            throw new Exception("Helper method `$helper` has already been defined");
        }

        $this->helpers[$helper] = $class;
    }
public function registerHelper($helper, $class)
    {
        if (array_key_exists($helper, $this->helpers)) {
            throw new Exception("Helper method `$helper` has already been defined");
        }

        $this->helpers[$helper] = $class;
    }
public function registerHelper ( $ helper , $ class ) { if ( array_key_exists ( $ helper , $ this -> helpers ) ) { throw new Exception ( "Helper method `$helper` has already been defined" ) ; } $ this -> helpers [ $ helper ] = $ class ; }
Register a helper method.
Register a helper method .