![]() |
Try \CodeIgniter\Config\Services::router()->getMatchedRouteOptions()['as'] ?
The method is not documented.
https://codeigniter4.github.io/CodeIgnit...uting.html It may be changed in the future. So I recommend you create a function or method to call above code. Then, even if the method is changed, you will need to update only the function/method code.
Apparently in version CI 4.6.0 this was really changed. Please help me, how can I do this in the current version?
Thank you
All works.
PHP Code: // Route $routes->get('/', 'Home::index', ['as' => 'homepage']); |
Welcome Guest, Not a member yet? Register Sign In |