Example #1
0
 /**
  * Creates an instance of each available helper and links it into into current controller.
  * 
  * Per example, if a helper TextHelper is located into the file text_helper.php. 
  * An instance is created on current controller
  * at $this->text_helper. This instance is also available on the view by calling $text_helper.
  * 
  * Helpers can be found at lib/AkActionView/helpers (this might change in a future)
  */
 function instantiateHelpers()
 {
     require_once(AK_LIB_DIR.DS.'AkActionView'.DS.'AkHelperLoader.php');
     $HelperLoader = new AkHelperLoader();
     $HelperLoader->setController(&$this);
     $HelperLoader->instantiateHelpers();
 }
Example #2
0
 /**
  * Creates an instance of each available helper and links it into into current controller.
  *
  * Per example, if a helper TextHelper is located into the file text_helper.php.
  * An instance is created on current controller
  * at $this->text_helper. This instance is also available on the view by calling $text_helper.
  *
  * Helpers can be found at lib/AkActionView/helpers (this might change in a future)
  */
 function instantiateHelpers()
 {
     Ak::setStaticVar('AkHelperLoader', $this->getHelperLoader());
     return;
     require_once AK_LIB_DIR . DS . 'AkActionView' . DS . 'AkHelperLoader.php';
     $HelperLoader = new AkHelperLoader();
     $HelperLoader->setController(&$this);
     $HelperLoader->instantiateHelpers();
     Ak::setStaticVar('AkHelperLoader', $HelperLoader);
 }