Check for url paramater existance
Hello ..
Wondering if there is a way in smarty to find out if a certain parameter exists in the url's query string?
e.g: current url - product.php?productid=16137&cat=0&page=1&featured
and I need to check if the parameter 'featured' exists ...
{if $php_url.query_string eq "featured"} ... {/if} doesn't seem to work, because that outputs the whole query string ...
Can anyone help ?
Thanks
Shafiq :sK
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4
Chamber Internet - Lancashire, United Kingdom
http://www.chamberelancs.co.uk
|