public static function asunto() { Paquete::usar("dominio.Asunto"); $reg = new Asunto($_POST["id"]); if ($reg->cargar() == true) { echo $reg->toXml(); } else { echo "error al cargar"; } }