Welcome Guest, Not a member yet? Register   Sign In
problem with routes in Code Modules
#5

(03-10-2020, 10:28 AM)kilishan Wrote: The route has to point to the Admin folder for that layout, so:

PHP Code:
    'Modules\Admin' => APPPATH .'/Modules/Admin'

This quote from that page in the user guide is the crucial bit, here:

Quote:When at the acme namespace above, we would need to make one small adjustment to make it so the files could be found: each “module” within the namespace would have to have it’s own namespace defined there. Acme would be changed to Acme\Blog. Once your module folder has been defined, the discover process would look for a Routes file, for example, at /acme/Blog/Config/Routes.php, just as if it was another application.
ok, the new documentation showed how to write to the autoloader and it was said that it will search in folders, which means that the example is not shown correctly in the documentation.
Reply


Messages In This Thread
problem with routes in Code Modules - by midav - 03-10-2020, 06:39 AM
RE: problem with routes in Code Modules - by midav - 03-10-2020, 10:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB