I have defined these routes:
PHP Code:
$routes->group('partner-gestione', function ($routes) {
$routes->get('/', 'Home::management_partner');
$routes->get('fiscalita', 'Home::taxation');
$routes->get('entrate-patrimoniali', 'Home::property_income');
$routes->get('valorizzazione-patrimonio', 'Home::heritage');
$routes->get('ottimizzazione-viabilita-urbana', 'Home::urban');
$routes->get('gestione-territorio', 'Home::territory');
$routes->get('catasto-ufficio-tecnico', 'Home::land_registry');
});
when I access to example.com/partner-gestione all works well, but when I try to enter in a nested route like: example.com/partner-gestione/fiscalita I get:
Uncaught SyntaxError: Unexpected token '<'
if I remove these routes from the group "partner-gestione", everything works fine:
PHP Code:
$routes->get('fiscalita', 'Home::taxation');
$routes->get('entrate-patrimoniali', 'Home::property_income');
$routes->get('valorizzazione-patrimonio', 'Home::heritage');
$routes->get('ottimizzazione-viabilita-urbana', 'Home::urban');
$routes->get('gestione-territorio', 'Home::territory');
$routes->get('catasto-ufficio-tecnico', 'Home::land_registry');
how's that possible? Using php spark routes I get: