config::setDbName('granja_porcicola_final'); config::setDbPort(5432); // 3306 config::setDbUser('postgres'); config::setDbPassword('sena'); // Esto solo es necesario en caso de necesitar un socket para la DB config::setDbUnixSocket(null); ///tmp/mysql.sock if (config::getDbUnixSocket() !== null) { config::setDbDsn(config::getDbDriver() . ':unix_socket=' . config::getDbUnixSocket() . ';dbname=' . config::getDbName()); } else { config::setDbDsn(config::getDbDriver() . ':host=' . config::getDbHost() . ';port=' . config::getDbPort() . ';dbname=' . config::getDbName()); } config::setPathAbsolute('/var/www/html/proyecto_porcicola/'); config::setUrlBase('http://www.granjaporcicola.com/'); config::setScope('prod'); // dev if (session::getInstance()->hasDefaultCulture() === false) { config::setDefaultCulture('es'); } else { config::setDefaultCulture(session::getInstance()->getDefaultCulture()); } config::setIndexFile('index.php'); config::setFormatTimestamp('Y-m-d H:i:s'); config::setHeaderJson('Content-Type: application/json; charset=utf-8'); config::setHeaderXml('Content-Type: application/xml; charset=utf-8'); config::setHeaderHtml('Content-Type: text/html; charset=utf-8'); config::setHeaderPdf('Content-type: application/pdf; charset=utf-8'); config::setHeaderJavascript('Content-Type: text/javascript; charset=utf-8'); config::setHeaderExcel2003('Content-Type: application/vnd.ms-excel; charset=utf-8'); config::setHeaderExcel2007('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; charset=utf-8');
config::setDbName('recaudador4'); config::setDbPort(5432); // 3306 config::setDbUser('postgres'); config::setDbPassword('postgres'); // Esto solo es necesario en caso de necesitar un socket para la DB config::setDbUnixSocket(null); ///tmp/mysql.sock if (config::getDbUnixSocket() !== null) { config::setDbDsn(config::getDbDriver() . ':unix_socket=' . config::getDbUnixSocket() . ';dbname=' . config::getDbName()); } else { config::setDbDsn(config::getDbDriver() . ':host=' . config::getDbHost() . ';port=' . config::getDbPort() . ';dbname=' . config::getDbName()); } config::setPathAbsolute('C:/MAMP/htdocs/prestamo/'); config::setUrlBase('http://sena.recaudador/'); config::setScope('dev'); // prod if (session::getInstance()->hasDefaultCulture() === false) { config::setDefaultCulture('es'); } else { config::setDefaultCulture(session::getInstance()->getDefaultCulture()); } config::setIndexFile('index.php'); config::setFormatTimestamp('Y-m-d H:i:s'); config::setHeaderJson('Content-Type: application/json; charset=utf-8'); config::setHeaderXml('Content-Type: application/xml; charset=utf-8'); config::setHeaderHtml('Content-Type: text/html; charset=utf-8'); config::setHeaderPdf('Content-type: application/pdf; charset=utf-8'); config::setHeaderJavascript('Content-Type: text/javascript; charset=utf-8'); config::setHeaderExcel2003('Content-Type: application/vnd.ms-excel; charset=utf-8'); config::setHeaderExcel2007('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; charset=utf-8');