* Different environments will require different levels of error reporting. * By default development will show errors but production will hide them. */ if (defined('ENVIRONMENT')) { switch (ENVIRONMENT) { case 'development': error_reporting(E_ALL); break; case 'production': error_reporting(0); break; default: exit('The application environment is not set correctly.'); } } //initiate config new \core\config(); //create alias for Router use core\router as Router, helpers\url as Url; //define routes Router::any('', '\\controllers\\glvc@index'); Router::any('/visa', '\\controllers\\glvc@travel_visa'); Router::any('/passport_photo', '\\controllers\\glvc@passport_photo'); Router::any('/about', '\\controllers\\glvc@about'); Router::any('/contact', '\\controllers\\glvc@contact'); //if no route found Router::error('\\core\\error@index'); //turn on old style routing Router::$fallback = false; //execute matched routes Router::dispatch();
router::any('admin/novedades', '\\controllers\\admin\\novedades@index'); router::any('admin/novedades/elementos', '\\controllers\\admin\\novedades@elementos'); router::any('admin/novedades/elemento_nuevo', '\\controllers\\admin\\novedades@add'); router::any('admin/novedades/elemento_editar', '\\controllers\\admin\\novedades@edit'); router::any('admin/novedades/elemento_publicar', '\\controllers\\admin\\novedades@publicar'); router::any('admin/novedades/elemento_destacar', '\\controllers\\admin\\novedades@destacar'); router::any('admin/novedades/elemento_borrar', '\\controllers\\admin\\novedades@delete'); //estilos de la pagina principal router::any('admin/estilos', '\\controllers\\admin\\estilos@index'); router::any('admin/estilos/cambiar', '\\controllers\\admin\\estilos@cambiar'); //DATA FEED DE EASYART router::any('admin/producto/lista', '\\controllers\\admin\\data_feed@productos'); router::any('admin/producto/lista_orden', '\\controllers\\admin\\data_feed@productos_ordenados'); router::any('admin/producto/categorias', '\\controllers\\admin\\data_feed@categorias'); router::any('admin/producto/grupos', '\\controllers\\admin\\data_feed@grupos'); router::any('admin/producto/filtro_productos', '\\controllers\\admin\\data_feed@filtro_productos'); router::any('admin/producto/productos_categoria', '\\controllers\\admin\\data_feed@productos_categoria'); router::any('admin/producto/detalles_producto', '\\controllers\\admin\\data_feed@detalles_producto'); router::any('admin/producto/carrusel', '\\controllers\\admin\\data_feed@galeria'); router::any('admin/novedades/publicas', '\\controllers\\admin\\data_feed@novedades'); router::any('admin/estilos/actual', '\\controllers\\admin\\data_feed@estilos'); //if no route found router::error('\\core\\error@index'); //crear los permisos de administrador para el primer uso del sistema router::any('instalacion/administrador', '\\controllers\\admin\\iniciar@index'); router::any('pdf', '\\controllers\\pdf@index'); router::any('mpdf', '\\controllers\\pdf@mensual'); //turn on old style routing router::$fallback = false; //execute matched routes router::dispatch();
} //initiate config new \core\config(); //create alias for Router use core\router as Router, helpers\url as Url; //define routes Router::any('', '\\controllers\\glt@index'); Router::any('/personal', '\\controllers\\glt@personal_tax'); Router::any('/personal/express', '\\controllers\\glt@express_personal_tax'); Router::any('/personal/personal_issues', '\\controllers\\glt@personal_tax_issues'); Router::any('/personal/us', '\\controllers\\glt@us_personal_tax_return'); Router::any('/corporate', '\\controllers\\glt@t2_annual_corporate_tax'); Router::any('/corporate/hst', '\\controllers\\glt@hst_return'); Router::any('/corporate/payroll', '\\controllers\\glt@annual_payroll'); Router::any('/corporate/financial_statement', '\\controllers\\glt@financial_statement_preparation'); Router::any('/corporate/business_issues', '\\controllers\\glt@business_tax_issues'); Router::any('/business', '\\controllers\\glt@business_startup'); Router::any('/accounting', '\\controllers\\glt@business_plans'); Router::any('/accounting/consultations', '\\controllers\\glt@business_consultations'); Router::any('/about', '\\controllers\\glt@about_us'); Router::any('/contact', '\\controllers\\glt@contact'); Router::any('/personal/noncanadians', '\\controllers\\glt@noncanadians'); // Router::any('/cn', '\controllers\glt@cn'); // Router::any('/ch', '\controllers\glt@cn'); // Router::any('/kr', '\controllers\glt@kr'); //if no route found Router::error('\\core\\error@index'); //turn on old style routing Router::$fallback = false; //execute matched routes Router::dispatch();
if (defined('ENVIRONMENT')) { switch (ENVIRONMENT) { case 'development': error_reporting(E_ALL); break; case 'production': error_reporting(0); break; default: exit('The application environment is not set correctly.'); } } //initiate config new \core\config(); //create alias for Router use core\router as Router, helpers\url as Url; //define routes Router::any('', '\\controllers\\cwp@index'); Router::any('/pardons', '\\controllers\\cwp@pardons'); Router::any('/waivers', '\\controllers\\cwp@waivers'); Router::any('/faq', '\\controllers\\cwp@faq'); Router::any('/about', '\\controllers\\cwp@about'); Router::any('/contact', '\\controllers\\cwp@contact'); Router::any('/tnc', '\\controllers\\cwp@tnc'); Router::any('/privacy_policy', '\\controllers\\cwp@privacy_policy'); //if no route found Router::error('\\core\\error@index'); //turn on old style routing Router::$fallback = false; //execute matched routes Router::dispatch();
*--------------------------------------------------------------- * ERROR REPORTING *--------------------------------------------------------------- * * Different environments will require different levels of error reporting. * By default development will show errors but production will hide them. */ if (defined('ENVIRONMENT')) { switch (ENVIRONMENT) { case 'development': error_reporting(E_ALL); break; case 'production': error_reporting(0); break; default: exit('The application environment is not set correctly.'); } } //initiate config new \core\config(); //create alias for Router use core\router as Router, helpers\url as Url; //define routes Router::any('', '\\controllers\\welcome@index'); //if no route found Router::error('\\core\\error@index'); //turn on old style routing Router::$fallback = true; //execute matched routes Router::dispatch();
Router::any('en/real-estate/print/(:all)', '\\controllers\\sales@detailVente'); Router::any('es/bienes-raices/print/(:all)', '\\controllers\\sales@detailVente'); Router::any('fr/immobiliers/print/(:all)', '\\controllers\\sales@detailVente'); Router::any('en/vente_lois.php', '\\controllers\\sales@infoSales'); Router::any('es/vente_lois.php', '\\controllers\\sales@infoSales'); Router::any('fr/vente_lois.php', '\\controllers\\sales@infoSales'); //activities Router::any('en/activity.php', '\\controllers\\activity@index'); Router::any('es/activity.php', '\\controllers\\activity@index'); Router::any('fr/activity.php', '\\controllers\\activity@index'); Router::any('en/activity/(:all)', '\\controllers\\activity@detailActivities'); Router::any('es/activity/(:all)', '\\controllers\\activity@detailActivities'); Router::any('fr/activity/(:all)', '\\controllers\\activity@detailActivities'); //contact Router::any('en/contact.php', '\\controllers\\contact@index'); Router::any('es/contact.php', '\\controllers\\contact@index'); Router::any('fr/contact.php', '\\controllers\\contact@index'); //gestion Router::any('en/gestion.php', '\\controllers\\gestion@index'); Router::any('es/gestion.php', '\\controllers\\gestion@index'); Router::any('fr/gestion.php', '\\controllers\\gestion@index'); //testimonials Router::any('en/testimonials.php', '\\controllers\\testimonials@index'); Router::any('es/testimonials.php', '\\controllers\\testimonials@index'); Router::any('fr/testimonials.php', '\\controllers\\testimonials@index'); //if no route found Router::error('\\core\\error@index'); //turn on old style routing Router::$fallback = false; //execute matched routes Router::dispatch();