Added new method for escape variables
This commit is contained in:
parent
6f5eafa434
commit
29e698d952
1 changed files with 19 additions and 0 deletions
19
src/View.php
19
src/View.php
|
|
@ -598,6 +598,10 @@ class View {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method for set the flash message
|
||||||
|
*/
|
||||||
|
|
||||||
static public function set_flash($text)
|
static public function set_flash($text)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
@ -605,6 +609,10 @@ class View {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method for show the flash message
|
||||||
|
*/
|
||||||
|
|
||||||
static public function show_flash()
|
static public function show_flash()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
@ -625,6 +633,17 @@ class View {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method for escape the variables in an view
|
||||||
|
*/
|
||||||
|
|
||||||
|
static public function e($text)
|
||||||
|
{
|
||||||
|
|
||||||
|
return Utils::form_text($text);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue