displaying {body}
Moderator: General Moderators
-
stevestark5000
- Forum Commoner
- Posts: 61
- Joined: Thu Jan 27, 2011 12:08 am
displaying {body}
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?
- Jonah Bron
- DevNet Master
- Posts: 2764
- Joined: Thu Mar 15, 2007 6:28 pm
- Location: Redding, California
Re: displaying {body}
str_replace()?
http://php.net/str-replace
Code: Select all
$html = str_replace('{BODY}', 'something else', $html);-
stevestark5000
- Forum Commoner
- Posts: 61
- Joined: Thu Jan 27, 2011 12:08 am
Re: displaying {body}
thank you