I have a template page and would like to have some of the fields with gaps filled in by "-" instead of gaps:
<p><a href="mailto:?subject=Hi, I thought this cleaning company might be of interest to you.&body=Here is a link to them: {$baseUrl}details/{$cleaner.id}-{$cleaner.company}/{$cleaner.clean1_id}/{$cleaner.address4}">
<u>Refer {$cleaner.company} to a friend</u></a></p><br>
I would like $cleaner.company to appear like so: "clarity-window-cleaning" instead of "clarity window cleaning"
I need something like this, but this doesn't work unfortunately:
$template->assign("variable",(str_replace($user[0]['company'])));
Hope you can help!?!?