From 29e698d952a61cc54064e2e4653ee2d9af5d1c13 Mon Sep 17 00:00:00 2001 From: Antonio de la Rosa Date: Mon, 18 Jan 2016 22:46:57 +0100 Subject: [PATCH] Added new method for escape variables --- src/View.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/View.php b/src/View.php index 53c90cd..e0e8bea 100644 --- a/src/View.php +++ b/src/View.php @@ -598,6 +598,10 @@ class View { } + /** + * Method for set the flash message + */ + static public function set_flash($text) { @@ -605,6 +609,10 @@ class View { } + /** + * Method for show the flash message + */ + 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); + + } + } ?> \ No newline at end of file