Example #1
0
 /**
  * Loads and declares a ViewHelper in the current view instance.
  * @param  string $helperName
  * @param  array  $config
  * @return null
  */
 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);
 }
 /**
  * {@inheritdoc}
  */
 public function applyOptions(array $args)
 {
     $this->keyword = $args[0];
     $this->classname = Helper::generateClassName($this->keyword);
 }