Welcome Guest, Not a member yet? Register   Sign In
why routing not work
#1
Sad 
(This post was last modified: 01-08-2022, 07:02 PM by yoshi.)

hi there.
current theme is school.

PHP Code:
/*
 * --------------------------------------------------------------------
 * Route Definitions
 * --------------------------------------------------------------------
 */

// We get a performance increase by specifying the default
// route since we don't have to scan directories.
$routes->get('/''Home::index');
$routes->get('school''School::index'); 

(Picture1: I can't paste a image.)
`http://localhost:8080/school/`
not works.

but, for example ... change to `schoolx`

PHP Code:
/*
 * --------------------------------------------------------------------
 * Route Definitions
 * --------------------------------------------------------------------
 */

// We get a performance increase by specifying the default
// route since we don't have to scan directories.
$routes->get('/''Home::index');
$routes->get('schoolx''School::index'); 

(Picture2: I can't paste a image.)
`http://localhost:8080/schoolx/`
it works.

why routing not work??

infomation:
controller name is `School.php`
Reply


Messages In This Thread
why routing not work - by yoshi - 01-08-2022, 06:59 PM
RE: why routing not work - by kenjis - 01-09-2022, 03:01 AM
RE: why routing not work - by yoshi - 01-09-2022, 04:23 AM
RE: why routing not work - by iRedds - 01-09-2022, 09:20 AM
RE: why routing not work - by yoshi - 01-09-2022, 06:12 PM
RE: why routing not work - by iRedds - 01-09-2022, 07:03 PM
RE: why routing not work - by yoshi - 01-09-2022, 09:57 PM
RE: why routing not work - by iRedds - 01-09-2022, 10:54 PM
RE: why routing not work - by yoshi - 01-10-2022, 02:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB