本文整理匯總了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);
}