当前位置: 首页>>代码示例>>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;未经允许,请勿转载。