php-mvc icon indicating copy to clipboard operation
php-mvc copied to clipboard

Where i can make routes file

Open dualsyscornd opened this issue 3 years ago • 1 comments

please explain me

dualsyscornd avatar Jan 31 '22 07:01 dualsyscornd

In this framework the routes are defined in the public/index.php file.

daveh avatar Jan 31 '22 14:01 daveh

Hello, if i insert all the route that i have like: $router->add('', ['controller' => 'Product', 'action' => 'index']);

and i digit localhost/route show me an issue that the route not exist. but fore sure exist.

robertaonnis avatar Oct 29 '22 07:10 robertaonnis

@robertaonnis The route you added above would match the homepage, e.g. http://localhost/

daveh avatar Oct 29 '22 17:10 daveh

Yes i Really sorry, I have read all the code yesterday and solve

robertaonnis avatar Oct 30 '22 09:10 robertaonnis