diff --git a/src/View.php b/src/View.php index d2891b2..6570b41 100644 --- a/src/View.php +++ b/src/View.php @@ -547,6 +547,30 @@ class View { } + static public function set_flash($text) + { + + $_SESSION['flash_txt']=$text; + + } + + static public function show_flash() + { + + if(isset($_SESSION['flash_txt'])) + { + if($_SESSION['flash_txt']!='') + { + + return View::loadView(array($_SESSION['flash_txt']), 'flash'); + + } + } + + return ''; + + } + } ?> \ No newline at end of file