View Single Post
  #3  
Old 03-21-2005, 02:27 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

If your doing this in a template, you have 2 options:

1) Using PHP in your templates. Replace "YOURSMARTYVARIABLE" with your variable.

Code:
{php} $newvariable = $GLOBALS['smarty']->_tpl_vars['YOURSMARTYVARIABLE']; echo str_replace($newvariable,"","/home/server/apple/html/"); {/php}

2) Use the PHP command str_replace by passing it as a modifier http://smarty.php.net/manual/en/api.register.modifier.php[/code]
Reply With Quote