Wednesday 15 March 2006 2:52:23 pm
I'm on page www.domain.com/content/tipafriend. The value of $requested_uri_string should be "content/tipafriend" However, the following if statement fails every time:
{let $current_requested_uri=$requested_uri_string|trim("/")}
{if ($current_requested_uri|eq('content/tipafriend'))}
TIP A FRIEND
{else}
PLEASE DO NOT TIP FRIENDS {$current_requested_uri}
{/if}
{let}
When I echo the value of $current_requested_uri I get "content/tipafriend" so the if statement should evaluate as true. Why isn't this working?
|