Should codeigniter have a group routes like laravel |
hey
shoud codeigniter have a group routes like laravel anyone here built this i want to contribute
Yes it have, You can see example here.
Routes can be grouped together under a common prefix, reducing the amount of typing needed and helping to organize the routes. $routes->group('admin', function($routes) { $routes->add('users', 'Admin\Users::index'); $routes->add('blog', 'Admin\Blog::index'); }); These routes would be available under an 'admin' segment in the URI, such as: test.com/admin/users test.com/admin/blog
AmarInfotech is a PHP Development Company that offers a variety of frameworks like Zend, CakePHP, CodeIgniter to the global clients.
|
Welcome Guest, Not a member yet? Register Sign In |