How do I retrieve the query parameters from a path?
How do I retrieve the query parameters from a path. Here's my path: /search?keys=hello Here is what I've tried: Here are the results: Test 1: NULL Test 2: NULL Test 3: '/search' Test 4: 'GET' Test 5: NULL Test 6: NULL Test 7: NULL Test 8: NULL Test 9: array ( ) Test 10: '/search' Why is this not working?
$_GET in drupal 8
In drupal 8 $_GET not work . When I use \Drupal::request()->query->get('id') in my module ,it just work for first time . For example I create this code : For first time ( id=1 ) it's work but for seconde time ( id=2 ) it's not work and still shows id=1
Drupal filters and $_GET arguments
DRUPAL 6 Hello everybody, can someone help me with this problem? I have a carousel (view) called 'heat_model_carousel' and this carousel displays a list of sauna's. SO, each sauna has a field called 'Model Type' - which can be : Basic, Advanced or Premium. Now, i added a block of links : <a href = '?model_type=Basic'></a> I just want to...
Why are URL encoded values in $_GET variables broken?
I'm working with a payment gateway that returns payment feedback in the URL. One of the variables has a special character in it: The %DC is Ü. However, it's coming through instead as �—and in case that doesn't display properly here, it's a black triangle with a question mark inside it. I confirmed this by replacing my menu callback with a simple pr...