From: Leandro Lucarella Date: Mon, 29 Mar 2004 17:58:41 +0000 (+0000) Subject: Se agrega un nuevo método para mostrar un error y salir. X-Git-Tag: svn_import~78 X-Git-Url: https://git.llucax.com/mecon/meconlib.git/commitdiff_plain/f7df1f0ee10189a0d00a814003bd1f242049775d?ds=sidebyside Se agrega un nuevo método para mostrar un error y salir. --- 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