I want to use GET method in my snippet. When I click href with address, eg. example.com/index.php?id=3&color=1 and I use var_dump to see $_GET, there are: array(2) { ["id"]=> string(1) "3" ["color"]=> string(1) "0" }
Is there some function to read GET information in MODx, or what?
Yes, but it doesn't work good. Once again: I have index.php?id=3&color=1 href, and firstly var_dump displays color=1, but when I change address to eg. index.php?id=3&color=8&size=4 it won't display new values (there were still color=1) until I'll clear cache in MODx...