/**
  * Define la estructura global de la página
  *
  */
 function body_content()
 {
     $this->set_body_attributes("bgcolor=\"yellow\"");
     //add the header area
     $this->add(html_comment("Header block begins"));
     $this->add($this->header_block());
     $this->add(html_comment("Header block ends"));
     //add it to the page
     //build the outer wrapper div
     //that everything will live under
     $wrapper_div = html_div();
     $wrapper_div->set_id("mainarea");
     //add the main body
     $wrapper_div->add(html_comment("Main block begins"));
     NLS::setTextdomain($this->registry->gettextDomain(), Util::formatPath(MIGUELGETTEXT_DIR), NLS::getCharset());
     $wrapper_div->add($this->main_block());
     $wrapper_div->add(html_comment("Main block ends"));
     $this->add($wrapper_div);
 }
 /**
  * Elimina de la pila el módulo, restaurando el siguiente módulo en la pila.
  *
  * @return string  The name of the application that was popped.
  *
  * @access public
  */
 function popApp()
 {
     /* Pop the current application off of the stack. */
     if (count($this->_appStack) > 1) {
         $previous = array_pop($this->_appStack);
         /* Import the new active application's configuration values
            and set the gettext domain and the preferred language. */
         $this->_currentApp = count($this->_appStack) ? end($this->_appStack) : null;
         if ($this->_currentApp) {
             NLS::setLang();
             NLS::setTextdomain($this->modules[$this->_currentApp]['gettext'], Util::formatPath(MIGUELGETTEXT_DIR), NLS::getCharset());
         }
     }
 }