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

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.
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 kilishan - 03-10-2020, 10:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB