Page 1 of 1
displaying {body}
Posted: Sun Mar 20, 2011 9:01 pm
by stevestark5000
I got a template with {BODY} in it but I don't know to write the code for body. for example, {body} would display something at that body section but i don't know to display that something. any ideas?
Re: displaying {body}
Posted: Sun Mar 20, 2011 10:15 pm
by Jonah Bron
str_replace()?
Code: Select all
$html = str_replace('{BODY}', 'something else', $html);
http://php.net/str-replace
Re: displaying {body}
Posted: Mon Mar 21, 2011 3:34 pm
by stevestark5000
thank you