Magento Forum

Grabbing variables from the URL
 
itzik
Member
 
Total Posts:  36
Joined:  2008-07-21
 

Does anyone know how to grab variables from the URL in Magento?  I am editing one of the core files, and I want to find the value of “q” in http://www.mydomain.com/catalogsearch/result/index/mode/list/?q=resident

I tried:

$q $_GET['q'];

but it didnt work.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top