Fix on variables
This commit is contained in:
parent
12f00ab151
commit
fb64d50a0e
1 changed files with 24 additions and 0 deletions
24
src/View.php
24
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 '';
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue