本文整理匯總了PHP中Shopp::raw_request_url方法的典型用法代碼示例。如果您正苦於以下問題:PHP Shopp::raw_request_url方法的具體用法?PHP Shopp::raw_request_url怎麽用?PHP Shopp::raw_request_url使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Shopp
的用法示例。
在下文中一共展示了Shopp::raw_request_url方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: raw_request_url
/**
* @deprecated Use Shopp::raw_request_url()
**/
function raw_request_url()
{
return Shopp::raw_request_url();
}
示例2: registration_form
/**
* Provides the registration form action URL
*
* @api `shopp('customer.registration-form')`
* @since 1.2
*
* @param string $result The output
* @param array $options The options
* @param ShoppCustomer $O The working object
* @return string The registration form URL
**/
public static function registration_form($result, $options, $O)
{
$regions = Lookup::country_zones();
add_storefrontjs('var regions = ' . json_encode($regions) . ';', true);
shopp_enqueue_script('address');
return Shopp::raw_request_url();
}
示例3: bouncer
/**
* Bounce the browser to the secure unlock request
*
* The redirect uses HTTP 307 to encourage browsers to resubmit
* their POST data to the redirected URL.
*
* @since 1.3.6
*
* @return void
*/
public function bouncer()
{
$this->data = false;
// Prevent saving the session
$https = Shopp::url(array('unlock' => Shopp::raw_request_url()), 'checkout', true);
Shopp::redirect($https, true, 307);
}