403 in Controller Subdirectory access |
In this type of structure I usually use something like this:
Taking advantage of the default controller As Home and the default method index. Code: - Controllers In routes: PHP Code: $routes->group('admin', ['namespace' => 'App\Controllers\Admin'], function($routes) So your routes would look Code: http://mydevsite.vhost/admin/ - To login Or Code: - Controllers PHP Code: $routes->group('auth', ['namespace' => 'App\Controllers\Auth'], function($routes) Routes: Code: http://mydevsite.vhost/auth/ - To login I think it becomes more readable. But, just a personal opinion. |
Messages In This Thread |
403 in Controller Subdirectory access - by inumaru - 06-23-2020, 01:16 PM
RE: 403 in Controller Subdirectory access - by InsiteFX - 06-24-2020, 04:27 AM
RE: 403 in Controller Subdirectory access - by MatheusCastro - 06-24-2020, 05:53 AM
RE: 403 in Controller Subdirectory access - by inumaru - 06-24-2020, 09:00 AM
RE: 403 in Controller Subdirectory access - by inumaru - 06-24-2020, 08:29 AM
RE: 403 in Controller Subdirectory access - by schertt - 06-24-2020, 10:15 AM
RE: 403 in Controller Subdirectory access - by inumaru - 06-24-2020, 11:09 AM
RE: 403 in Controller Subdirectory access - by Divi - 10-29-2020, 06:27 PM
RE: 403 in Controller Subdirectory access - by schertt - 06-25-2020, 09:42 AM
RE: 403 in Controller Subdirectory access - by sriram_ci - 11-10-2021, 06:03 AM
|