本文整理汇总了PHP中Canvas::redirect方法的典型用法代码示例。如果您正苦于以下问题:PHP Canvas::redirect方法的具体用法?PHP Canvas::redirect怎么用?PHP Canvas::redirect使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Canvas
的用法示例。
在下文中一共展示了Canvas::redirect方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: replaceKey
case 'm-lev':
replaceKey($fields, 'id', 'xtra1');
break;
case 'resize':
replaceKey($fields, 'vpw', 'xc');
replaceKey($fields, 'vph', 'yc');
break;
}
// We finally insert into the track table.
$q->insertList($fields)->into('event')->run();
}
// We update the track record as processed.
$q->update('processed', 1)->into('track')->where("id=" . $chunk['id'])->run();
}
}
$c->redirect();
break;
/* --------------------------------------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------------------------------------- */
case 'forget':
$t = new Toolbar();
$t->addAction('Back', 'show()', 'go-back');
$c->register($t);
if ($trackid = getvar('trackid', '')) {
$c->displayMsg("OK, forgetting id={$trackid}.");
} else {
$c->displayMsg("I was supposed to receive an id to forget.");
}
break;
/* --------------------------------------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------------------------------------- */