From f7df1f0ee10189a0d00a814003bd1f242049775d Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Mon, 29 Mar 2004 17:58:41 +0000 Subject: [PATCH] =?utf8?q?Se=20agrega=20un=20nuevo=20m=C3=A9todo=20para=20?= =?utf8?q?mostrar=20un=20error=20y=20salir.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- lib/MECON/HTML/Page.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/MECON/HTML/Page.php b/lib/MECON/HTML/Page.php index 85cd558..b0e8429 100644 --- a/lib/MECON/HTML/Page.php +++ b/lib/MECON/HTML/Page.php @@ -73,5 +73,16 @@ class MECON_HTML_Page extends HTML_Page { parent::addBodyContent($content); } + /** + * Muestra un error a través y termina el programa. + */ + function error($msg) + { + require_once 'MECON/HTML/Error.php'; + $this->addBodyContent(new MECON_HTML_Error($msg)); + $this->display(); + exit; + } + } ?> \ No newline at end of file -- 2.43.0