Welcome Guest, Not a member yet? Register   Sign In
Nested routes not working
#1

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 '<'

[Image: ur9VuZ6.png]

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:

[Image: A0inray.png]
Reply


Messages In This Thread
Nested routes not working - by sfarzoso - 04-15-2021, 04:17 AM
RE: Nested routes not working - by iRedds - 04-15-2021, 06:15 PM
RE: Nested routes not working - by sfarzoso - 04-15-2021, 10:31 PM
RE: Nested routes not working - by ojmichael - 04-16-2021, 12:03 AM
RE: Nested routes not working - by sfarzoso - 04-16-2021, 01:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB