Welcome Guest, Not a member yet? Register   Sign In
CI4 controller can't 'see' a GET parameter
#6

(02-07-2020, 12:08 PM)kilishan Wrote: getVar() pulls from $_REQUEST.  Try dumping out your $_GET and $_REQUEST vars to see what shows up. I don't know of a reason it wouldn't show up in the REQUEST object of the top of my head.

Also, as dropwinston said, you can use $this->request->getGet('title') when you know it's coming from $_GET.

ahh... there is progress. Dumping $_REQUEST gives me:


array(3) { ["//news/create?title"]=> string(12) "lkjhlkjhlkjh" ["body"]=> string(16) "4353425435342543" ["submit"]=> string(16) "Create news item" } lkjhlkjhlkjh

Ok, not seen that before. Why is the whole uri there for title?
Reply


Messages In This Thread
RE: CI4 controller can't 'see' a GET parameter - by Ged - 02-07-2020, 03:18 PM



Theme © iAndrew 2016 - Forum software by © MyBB