In Smarty, how do I check what browser is being used?
posted by Stephan Borg on 01 Jul 2005 (12:06 UTC)
Here is a code sample for your .tpl:


<?php
{if $gBitLoc.browser.client eq 'mz' or $gBitLoc.browser.client eq 'ie'}
    
This browser is IE or Mozilla based!
{/if}
?>


the end.


Permalink (referenced by: 0 posts references: 0 posts)