本文整理汇总了PHP中VmView::getVmSubLayoutPath方法的典型用法代码示例。如果您正苦于以下问题:PHP VmView::getVmSubLayoutPath方法的具体用法?PHP VmView::getVmSubLayoutPath怎么用?PHP VmView::getVmSubLayoutPath使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类VmView
的用法示例。
在下文中一共展示了VmView::getVmSubLayoutPath方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: renderVmSubLayout
/**
* Renders sublayouts
*
* @param $name
* @param int $viewData viewdata for the rendered sublayout, do not remove
* @return string
*/
public static function renderVmSubLayout($name, $viewData = 0)
{
if (!class_exists('VmView')) {
require VMPATH_SITE . DS . 'helpers' . DS . 'vmview.php';
}
$lPath = VmView::getVmSubLayoutPath($name);
if ($lPath) {
ob_start();
include $lPath;
return ob_get_clean();
} else {
vmdebug('renderVmSubLayout layout not found ' . $name);
}
}
示例2: displayProductCustomfieldSelected
/**
* There are too many functions doing almost the same for my taste
* the results are sometimes slighty different and makes it hard to work with it, therefore here the function for future proxy use
*
*/
public static function displayProductCustomfieldSelected($product, $html, $trigger)
{
if (self::$customfieldRenderer) {
self::$customfieldRenderer = false;
if (!class_exists('VmView')) {
require VMPATH_SITE . DS . 'helpers' . DS . 'vmview.php';
}
$lPath = VmView::getVmSubLayoutPath('customfield');
if ($lPath) {
require $lPath;
} else {
vmdebug('displayProductCustomfieldFE layout not found customfield');
}
}
return VirtueMartCustomFieldRenderer::renderCustomfieldsCart($product, $html, $trigger);
}