本文整理汇总了PHP中Site::flash方法的典型用法代码示例。如果您正苦于以下问题:PHP Site::flash方法的具体用法?PHP Site::flash怎么用?PHP Site::flash使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Site
的用法示例。
在下文中一共展示了Site::flash方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: delete
public function delete($id = null)
{
$article = self::load_article($id);
$article->destroy();
Site::flash("notice", "The article has been deleted");
Redirect("admin/articles");
}
示例2: delete
public function delete($id = null)
{
$slideshow = self::load_slideshow($id);
$slideshow->destroy();
Site::flash("notice", "The slide has been deleted");
Redirect("admin/slideshow");
}
示例3: delete
public function delete($permalink = null)
{
$news = self::load_news($permalink, false);
$news->destroy();
Site::flash("notice", "The news has been deleted");
Redirect("admin/news");
}
示例4: delete
public function delete($id = null)
{
$user_achievement = $this->load_user_achievement($id);
$user_achievement->destroy();
Site::flash("notice", "The user achievement has been deleted");
Redirect("admin/users/{$user_achievement->user->nickname}");
}
示例5: delete
public function delete($permalink = null)
{
$event = self::load_event($permalink);
$event->destroy();
Site::flash("notice", "The event has been deleted");
Redirect("admin/events");
}
示例6: delete
public function delete($id = null)
{
$discount = $this->load_discount($id);
$discount->destroy();
Site::flash("notice", "The discount code has been deleted");
Redirect("admin/discounts");
}
示例7: delete
public function delete($permalink = null)
{
$content = self::load_content($permalink);
$content->destroy();
Site::flash("notice", "The content page has been deleted");
Redirect("admin/content");
}
示例8: delete
public function delete($id = null)
{
$award = $this->load_award($id);
$award->destroy();
Site::flash("notice", "The awarded loyalty has been deleted");
Redirect("admin/loyalty");
}
示例9: contact
public function contact()
{
$content = Content::find_by_permalink("contact");
$this->assign("content", $content);
$contact = new Contact();
if ($this->post) {
$contact->name = $_POST['name'];
$contact->emailaddress = $_POST['emailaddress'];
$contact->subject = $_POST['subject'];
$contact->message = $_POST['message'];
$contact->ip = Site::RemoteIP();
if ($this->csrf) {
$sent = $contact->send();
if ($sent) {
Site::flash("notice", "The email has been sent");
Redirect("contact");
}
} else {
global $site;
$site['flash']['error'] = "Invalid form submission";
}
}
$this->assign("contact", $contact);
$this->title = "Contact Us";
$this->render("contact/contact.tpl");
}
示例10: refresh
public function refresh($id = null)
{
$server = self::load_gameserver($id);
$server->update_stats();
Site::flash("notice", "The game server has been refreshed");
Redirect("admin/servers");
}
示例11: delete
public function delete($id = null)
{
$tag = self::load_tag($id);
$tag->destroy();
Site::flash("notice", "The tag has been deleted");
Redirect("admin/tags");
}
示例12: delete
public function delete($id = null)
{
$account = $this->load_account($id);
$account->destroy();
Site::flash("notice", "The account has been deleted");
Redirect("admin/twitter/accounts");
}
示例13: delete
public function delete($id = null)
{
$game = self::load_game($id);
$game->destroy();
Site::flash("notice", "The game has been deleted");
Redirect("admin/games");
}
示例14: delete
public function delete($permalink = null)
{
$event = $this->load_event();
$content = $this->load_content($event, $permalink);
$content->destroy();
Site::flash("notice", "The event content page has been deleted");
Redirect("admin/events/{$event->permalink}/content");
}
示例15: up
public function up($id = null)
{
self::Restrict("admin");
$category = self::load_category($id);
$category->move_up();
Site::flash("notice", "The category has been moved up");
Redirect("admin/achievements/categories");
}