本文整理汇总了PHP中producthelper::generateBreadcrumb方法的典型用法代码示例。如果您正苦于以下问题:PHP producthelper::generateBreadcrumb方法的具体用法?PHP producthelper::generateBreadcrumb怎么用?PHP producthelper::generateBreadcrumb使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类producthelper
的用法示例。
在下文中一共展示了producthelper::generateBreadcrumb方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: display
function display($tpl = null)
{
$app = JFactory::getApplication();
$order_functions = new order_functions();
$print = JRequest::getInt('print');
if ($print) {
?>
<script type="text/javascript" language="javascript">
window.print();
</script>
<?php
}
$params = $app->getParams('com_redshop');
$prodhelperobj = new producthelper();
$prodhelperobj->generateBreadcrumb();
$user = JFactory::getUser();
$session = JFactory::getSession();
$order_id = $session->get('order_id');
$oid = JRequest::getInt('oid', $order_id);
$encr = JRequest::getString('encr');
$layout = JRequest::getCmd('layout');
$model = $this->getModel('order_detail');
$OrdersDetail = $order_functions->getOrderDetails($oid);
if ($user->id) {
if ($OrdersDetail->user_id != $user->id) {
$app->Redirect('index.php?option=com_redshop&view=login&Itemid=' . JRequest::getInt('Itemid'));
return;
}
} else {
if (isset($encr)) {
$authorization = $model->checkauthorization($oid, $encr);
if (!$authorization) {
JError::raiseWarning(404, JText::_('COM_REDSHOP_ORDER_ENCKEY_FAILURE'));
echo JText::_('COM_REDSHOP_ORDER_ENCKEY_FAILURE');
return false;
}
} elseif (!$user->id) {
$app->Redirect('index.php?option=com_redshop&view=login&Itemid=' . JRequest::getInt('Itemid'));
return;
}
}
$this->OrdersDetail = $OrdersDetail;
$this->user = $user;
$this->params = $params;
parent::display($tpl);
}