$rain->assign(self::$variables); if (self::$configuration['start_with'] !== null) { $rain->draw(self::$configuration['start_with'], false); } // Recorremos el arreglo de plantillas y las vamos mostrando foreach (self::$templates as $template) { $rain->draw($template, false); } if (self::$configuration['end_with'] !== null) { $rain->draw(self::$configuration['end_with'], false); } } else { //TODO: Considerar idiomas if (count(self::$variables) >= 1) { echo json_encode(self::$variables); } } } } // class View(); /** * Excepción exclusiva del componente View * @access private */ class View_Exception extends \Exception { } // class View_Exception(); // Iniciamos el componente. View::init();