本文整理汇总了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);
}
示例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);
}
示例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;
}
示例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);
}
示例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);
}
示例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);
}