예제 #1
0
 public static function AppModuloDefecto()
 {
     Paquete::usar("presentacion.paginas.SwfPage");
     $pag = new SwfPage();
     $pag->setTitle("Login Usuario");
     $pag->set_rutaSwf(ConfigGlobal::getUrlGlobal() . "presentacion/aplicaciones/AppLoginUsuario.swf");
     $pag->addVar("site_url", ConfigGlobal::getUrlGlobal());
     $pag->addVar("debug", ConfigGlobal::getDebug());
     echo $pag;
 }
예제 #2
0
 /**
  * Fabrica de objetos de base de datos
  *
  * @param String $gestor
  * @return Zend_Db_Adapter_Abstract
  */
 public function crear($gestor = "MySql")
 {
     switch ($gestor) {
         case "MySql":
             $db = Zend_Db::factory("Pdo_Mysql", ConfigGlobal::getDb()->toArray());
             return $db;
         default:
             return NULL;
     }
 }