Smarty wildcard selector for string

Wednesday, November 4, 2015

Quick and simple, I have an app that works entirely on Smarty; basically I have {if} statement to determine what URI is user currently viewing so I can decide what to serve, it looks like:



    $GLOBALS.user_page_uri == '/private-messages/contacts/'


That opens all contacts, and when you click on some you open /private-messages/contacts/ID
So I need some kind of wildcard that will go at the end of code above so it only looks for "/private-messages/contacts/" and ignores everything after, I tried "*" and "%" but to no avail.

0 comments:

Post a Comment