Group routing |
What should be the folder structure and controller class name for group routes as example:
$routes->group('admin', function($routes) { $routes->add('users', 'Admin\Users::index'); $routes->add('blog', 'Admin\Blog::index'); });
Folder structure will be the same as the second parameter,
like this in your case; Code: app/Controllers/Admin/Users.php as for the controller file itself the content will be something like this: PHP Code: <?php namespace App\Controllers\Admin;
(06-23-2020, 12:19 PM)inumaru Wrote: Folder structure will be the same as the second parameter, Thanks a lot @inumaru |
Welcome Guest, Not a member yet? Register Sign In |