本文整理匯總了PHP中Renderer::setAction方法的典型用法代碼示例。如果您正苦於以下問題:PHP Renderer::setAction方法的具體用法?PHP Renderer::setAction怎麽用?PHP Renderer::setAction使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Renderer
的用法示例。
在下文中一共展示了Renderer::setAction方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: orderSuccessfulAction
public static function orderSuccessfulAction()
{
if (array_key_exists('customer', $_SESSION)) {
$bAgbSigned = array_key_exists('agb', $GLOBALS['_POST']) && $GLOBALS['_POST']['agb'];
if (!$bAgbSigned) {
Renderer::setAction('checkout');
Status::addError('Bitte bestätigen Sie die AGB', null, 'agb');
static::checkoutAction();
return;
}
$customer = $_SESSION['customer'];
$data = rpHelper::mergeHash(shopCustomer::defaultsEntry(array('return_user' => 1, 'return_policy' => 1)), $customer);
$data['set_uid'] = 1;
if ($customer['ceid'] || ($customer['ceid'] = shopCustomer::saveEntry($data))) {
if ($order = shopShopping::addCartToOrder(array('ceid' => $customer['ceid'], 'send_mail' => 1))) {
session_start();
unset($_SESSION['customer']);
$_SESSION['order'] = $order;
$_SESSION['order']['ceid'] = $customer['ceid'];
$_SESSION['laid']['laid'] = 1;
session_write_close();
}
}
Renderer::assign('interval', shopProduct::readInterval(array('return_shopformat' => 1)));
}
}