当前位置: 首页>>代码示例>>PHP>>正文


PHP Site::flash方法代码示例

本文整理汇总了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");
 }
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:7,代码来源:article.controller.php

示例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");
 }
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:7,代码来源:slideshow.controller.php

示例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");
 }
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:7,代码来源:news.controller.php

示例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}");
 }
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:7,代码来源:user_achievement.controller.php

示例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");
 }
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:7,代码来源:event.controller.php

示例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");
 }
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:7,代码来源:discount_code.controller.php

示例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");
 }
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:7,代码来源:content.controller.php

示例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");
 }
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:7,代码来源:loyalty_award.controller.php

示例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");
 }
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:26,代码来源:contact.controller.php

示例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");
 }
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:7,代码来源:gameserver.controller.php

示例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");
 }
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:7,代码来源:tag.controller.php

示例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");
 }
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:7,代码来源:twitter_account.controller.php

示例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");
 }
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:7,代码来源:game.controller.php

示例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");
 }
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:8,代码来源:event_content.controller.php

示例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");
 }
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:8,代码来源:achievement_category.controller.php


注:本文中的Site::flash方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。