Added new method for escape variables

This commit is contained in:
Antonio de la Rosa 2016-01-18 22:46:57 +01:00
parent 6f5eafa434
commit 29e698d952

View file

@ -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);
}
} }
?> ?>