本文整理汇总了PHP中JS::redirect方法的典型用法代码示例。如果您正苦于以下问题:PHP JS::redirect方法的具体用法?PHP JS::redirect怎么用?PHP JS::redirect使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JS
的用法示例。
在下文中一共展示了JS::redirect方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: emailInvitationClickedSaveActivityAndRedirectLocation
public static function emailInvitationClickedSaveActivityAndRedirectLocation($defaultLink, $action, $redirect, $to, $subject, $body, $from, $title, $qid, $email)
{
echo "emailInvitationClickedSaveActivityAndRedirectLocation({$defaultLink}, {$action}, {$redirect}, {$to}, {$subject}, {$body}, {$from}, {$title}, {$qid})";
// $bool = FALSE;
if (Email::setLink($action, $email, $defaultLink, $qid)) {
if (LookbookDatabase::emailSaveAction($action, $qid)) {
echo "<br>successfully added activity";
if (Email::sendToEmail($to, $subject, $body, $from, $title)) {
echo "<br>Notification Email Success to send to admin";
$bool = TRUE;
} else {
echo "<br>Notification Email failled to send to admin";
}
} else {
echo "<br>failled added activity";
}
} else {
echo "<br>failled set link ";
}
echo 'Redired = ' . Email::getLink();
if ($redirect == TRUE) {
JS::redirect(Email::getLink());
echo "\nRedirect";
} else {
return $bool;
echo '<br>Redirect disabled';
}
}