Welcome Guest, Not a member yet? Register   Sign In
Using QUERY_STRING on CI4
#4

(11-14-2020, 05:31 AM)includebeer Wrote: My first question would be, why would you even want to do this for the controllers and all the routing?

If you only want to get a value from the query string you can use getVar() or getGet():
PHP Code:
$something $request->getVar('foo');
$something $request->getGet('foo'); 


See: https://www.codeigniter.com/user_guide/i...ving-input

I know it's not the most convenient thing, but I'm migrating an application and I need to change a lot of URLs. Being able to keep the current routing is the best option for me
Reply


Messages In This Thread
Using QUERY_STRING on CI4 - by lucky - 11-14-2020, 04:44 AM
RE: Using QUERY_STRING on CI4 - by includebeer - 11-14-2020, 05:31 AM
RE: Using QUERY_STRING on CI4 - by lucky - 11-14-2020, 07:22 AM
RE: Using QUERY_STRING on CI4 - by includebeer - 11-14-2020, 10:07 AM
RE: Using QUERY_STRING on CI4 - by lucky - 11-14-2020, 10:20 AM
RE: Using QUERY_STRING on CI4 - by InsiteFX - 11-20-2020, 05:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB