Exemplo n.º 1
0
 protected function createView($actionName)
 {
     $view = new OA_Admin_Template($actionName . '-step.html');
     $installTemplatesPath = MAX_PATH . '/www/admin/templates/install/';
     $view->template_dir = $installTemplatesPath;
     $view->assign("oxInstallerTemplateDir", $installTemplatesPath);
     $view->register_function('ox_wizard_steps', array(new OX_UI_WizardSteps(), 'wizardSteps'));
     return $view;
 }
Exemplo n.º 2
0
 /**
  * Register supported hooks on the view template.
  * In order to invoke listeners reacting on that hooks template must invoke
  * smarty functions.
  * 
  * Registered hooks:
  * {view_before_content}
  * {view_after_content}
  *
  * @param OA_Admin_Template $oTpl
  */
 protected function register(OA_Admin_Template $oTpl)
 {
     $oTpl->register_function('view_before_content', array($this, 'beforeContent'));
     $oTpl->register_function('view_after_content', array($this, 'afterContent'));
 }