PHP Smarty Template question - how can I apply str_replace function to variable?
Posted on 2009-05-19
I'm in the process of dealing with a PHP-based app that uses smarty templates, and I'm trying to figure out how to apply a str_replace() function to one of the variables that I'm encountering in one of the html templates:
This parameter resolves to an image path that I need to somehow change.
More specifically, .. I need to update this image path using the str_replace() function. I want to replace the string "/webauction/" with nothing (ie: "").
How do I do that? is it even possible within a smarty template?