Welcome Guest, Not a member yet? Register   Sign In
How can you configure routes for such a structure.
#9

There is such an idea ... I would like to ask if she has the right to life, or it will turn out completely silly.
PHP Code:
$routes->group('admin/([0-9a-z_-]+)', function($routes)
{
    
$uri = \Config\Services::request()->uri;

    
$module $uri->getSegment(2);

 
   $routes->add('/''Modules\\'.$module.'\\Controllers\Admin\Index::index');
}); 
Reply


Messages In This Thread
RE: How can you configure routes for such a structure. - by Dedov_Evgeniy - 11-05-2018, 08:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB