當前位置: 首頁>>代碼示例>>PHP>>正文


PHP JControllerLegacy::getView方法代碼示例

本文整理匯總了PHP中JControllerLegacy::getView方法的典型用法代碼示例。如果您正苦於以下問題:PHP JControllerLegacy::getView方法的具體用法?PHP JControllerLegacy::getView怎麽用?PHP JControllerLegacy::getView使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在JControllerLegacy的用法示例。


在下文中一共展示了JControllerLegacy::getView方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getView

  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);
  }
開發者ID:kosmosby,項目名稱:medicine-prof,代碼行數:7,代碼來源:payments.php

示例2: getView

 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);
 }
開發者ID:panickylemon,項目名稱:joomlastayn,代碼行數:11,代碼來源:base.php

示例3: getView

 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;
 }
開發者ID:templaza,項目名稱:tz_portfolio_plus,代碼行數:40,代碼來源:controller.php

示例4: getView

 /**
  * 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);
 }
開發者ID:ppantilla,項目名稱:bbninja,代碼行數:18,代碼來源:visualization.php

示例5: getView

 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);
 }
開發者ID:kosmosby,項目名稱:medicine-prof,代碼行數:6,代碼來源:admin.php

示例6: getView

 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);
 }
開發者ID:kosmosby,項目名稱:medicine-prof,代碼行數:6,代碼來源:integration.php


注:本文中的JControllerLegacy::getView方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。