altomarketing Posted February 14, 2011 Share Posted February 14, 2011 We would like to show different headers depending on where it comes from the user, ie HTTP_REFFER try to use the following code but it shows us the full path where it comes from, including subdirectories and file htmll concerns us. {$smarty.server.HTTP_REFERER|escape:'htmlall':'UTF-8'} shows http://www.websiteAAA.com/dire1/fdf2/file.html'>http://www.websiteAAA.com/dire1/fdf2/file.html , almost perfect But how can I display only the path as http://www.websiteAAA.com for example? do not know how to use parse_url within smarty Thanks 0 Quote Link to comment Share on other sites More sharing options...
altomarketing Posted February 16, 2011 Author Share Posted February 16, 2011 done , I resolve it with {php}code in php {/php} is the easiest way 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.