}
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);
// una hora en segundo 3600 y por 8 serían 8 horas
config::setDefaultModule('default');
config::setDefaultAction('index');
config::setDefaultModuleSecurity('shfSecurity');
config::setDefaultActionSecurity('index');
config::setDefaultModulePermission('shfSecurity');
config::setDefaultActionPermission('noPermission');
Exemple #2
0
}
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');
config::setCookieNameRememberMe('recaudadorRememberMe');
config::setCookieNameSite('recaudadorSite');
config::setCookiePath('C:/MAMP/htdocs/prestamo/web' . config::getIndexFile());
config::setCookieDomain('http://sena.recaudador/');
config::setCookieTime(3600 * 8);
// una hora en segundo 3600 y por 8 serían 8 horas
config::setDefaultModule('sitioWeb');
config::setDefaultAction('index');
config::setDefaultModuleSecurity('shfSecurity');
config::setDefaultActionSecurity('index');
config::setDefaultModulePermission('shfSecurity');
config::setDefaultActionPermission('noPermission');