// 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::setCookieNameRememberMe('mvcSiteRememberMe'); config::setCookieNameSite('mvcSite'); config::setCookiePath('/www.proyectoporcicola.com/web/' . config::getIndexFile()); config::setCookieDomain('http://www.granjaporcicola.com/'); config::setCookieTime(3600 * 8);