예제 #1
0
  function getView( $name = '', $type = 'html', $prefix = '', $config = array() )
  {
      $MyApp= JTheFactoryApplication::getInstance();
      $config['template_path']=$MyApp->app_path_front.'payments'.DS."views".DS.strtolower($name).DS."tmpl";
 
      return parent::getView($name,$type,'JTheFactoryViewPayments',$config);
  }
예제 #2
0
 public function getView($name = '', $type = '', $prefix = '', $config = array())
 {
     $jshopConfig = JSFactory::getConfig();
     if ($type == '') {
         $type = getDocumentType();
     }
     if (empty($config)) {
         $config = array("template_path" => $jshopConfig->template_path . $jshopConfig->template . "/" . $name);
     }
     return parent::getView($name, $type, $prefix, $config);
 }
예제 #3
0
 public function getView($name = '', $type = '', $prefix = 'TZ_Portfolio_PlusView', $config = array())
 {
     $view = parent::getView($name, $type, $prefix, $config);
     if ($view) {
         $view->document = JFactory::getDocument();
         if ($template = TZ_Portfolio_PlusTemplate::getTemplate(true)) {
             if ($template->id) {
                 $tplparams = $template->params;
                 $path = $view->get('_path');
                 $bool_tpl = false;
                 if (JFolder::exists(COM_TZ_PORTFOLIO_PLUS_TEMPLATE_PATH . DIRECTORY_SEPARATOR . $template->template)) {
                     $bool_tpl = true;
                 }
                 if ($bool_tpl) {
                     $name = strtolower($name);
                     // Load template language
                     $lang = JFactory::getLanguage();
                     $lang->load('tpl_' . $template->template, COM_TZ_PORTFOLIO_PLUS_TEMPLATE_PATH . DIRECTORY_SEPARATOR . $template->template);
                     if (!$tplparams->get('override_html_template_site', 0)) {
                         $last_path = array_pop($path['template']);
                         if (isset($template->base_path) && $template->base_path) {
                             $path['template'][] = $template->base_path . DIRECTORY_SEPARATOR . $name;
                         }
                         if (isset($template->home_path) && $template->home_path) {
                             $path['template'][] = $template->home_path . DIRECTORY_SEPARATOR . $name;
                         }
                         $path['template'][] = $last_path;
                         $view->set('_path', $path);
                     } else {
                         if (isset($template->home_path) && $template->home_path) {
                             $view->addTemplatePath($template->home_path . DIRECTORY_SEPARATOR . $name);
                         }
                         $view->addTemplatePath($template->base_path . DIRECTORY_SEPARATOR . $name);
                     }
                 }
             }
         }
     }
     return $view;
 }
예제 #4
0
 /**
  * Override of j!'s getView
  *
  * Method to get a reference to the current view and load it if necessary.
  *
  * @param   string  $name    The view name. Optional, defaults to the controller name.
  * @param   string  $type    The view type. Optional.
  * @param   string  $prefix  The class prefix. Optional.
  * @param   array   $config  Configuration array for view. Optional.
  *
  * @return  object  Reference to the view or an error.
  */
 public function getView($name = '', $type = '', $prefix = '', $config = array())
 {
     $viewName = str_replace('FabrikControllerVisualization', '', get_class($this));
     $viewName = $viewName == '' ? $this->getViewName() : $name;
     return parent::getView($viewName, $type, $prefix, $config);
 }
예제 #5
0
 function getView($name = '', $type = 'html', $prefix = '', $config = array())
 {
     $MyApp = JTheFactoryApplication::getInstance();
     $config['template_path'] = $this->itempath . DS . 'views' . DS . strtolower($name) . DS . "tmpl";
     return parent::getView($name, $type, $prefix, $config);
 }
예제 #6
0
 function getView($name = '', $type = '', $prefix = '', $config = array())
 {
     $MyApp = JTheFactoryApplication::getInstance();
     $config['template_path'] = $MyApp->app_path_admin . 'integration' . DS . "views" . DS . "integration" . DS . "tmpl";
     return parent::getView($name, $type, 'JTheFactoryView', $config);
 }