![]() |
GET in uri routing - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: GET in uri routing (/showthread.php?tid=75992) |
GET in uri routing - mjamilasfihani - 04-04-2020 Well I have something maybe its interest. I have url structure like this https://my.example.com/console?pages=dashboard And I have a lot of get value, not just dashboard ![]() Because I don't want describe in one controller (this is what I do right now). Thanks RE: GET in uri routing - php_rocs - 04-04-2020 @mjamilasfihani, Have you looked at the documentation? https://codeigniter.com/user_guide/incoming/routing.html I would think that you should have no problem creating a url structure of your own choosing. RE: GET in uri routing - mjamilasfihani - 04-04-2020 (04-04-2020, 12:32 PM)php_rocs Wrote: @mjamilasfihani, Sorry its not about $routes->get(); here I give more description what I mean : console?pages=dashboard console?pages=profile ... ... I want set them in every script but in routes.php not in my controller (if I set in my controller I must check every get value that must be same with available option, but if in routes.php it will throw 404. I want do that) , can you get what I mean? Thanks RE: GET in uri routing - cukikt0302 - 04-05-2020 in routes.php die(var_dump(service('request')->getGet('dashboard'))); // profile,... |