Welcome Guest, Not a member yet? Register   Sign In
Understanding routes


I think that this is a CI3 question posted in the CI4 section :-)

If you are talking about CI4, you can use " $routes->resource('something'); ". It will create all routes for you and solve your problem: https://codeigniter4.github.io/userguide...stful.html

Anyway, the "app/Config/Routes.php" file says:
// We get a performance increase by specifying the default
// route since we don't have to scan directories.

So I prefer to define all routes manually. I don't know if this is the right reasoning to have though :-)

Messages In This Thread
Understanding routes - by bystefu - 01-04-2020, 04:15 AM
RE: Understanding routes - by littlej - 01-06-2020, 09:42 AM

Theme © iAndrew 2016 - Forum software by © MyBB