Page 1 of 1

replace template file

Posted: Wed Dec 30, 2009 7:00 pm
by czy11421
I have one php file (search.php) and its html file (search_body.html)

in search.php files, I have
myarray['char_options'] = '<option>en</option><option>fr</option>';

in search_body.html, I have
<select>{char_options}</select>

Then I need to open search_body.html, and replace '{char_options}' with myarray['char_options'], how can I do this ?

Thanks.

Re: replace template file

Posted: Wed Dec 30, 2009 7:03 pm
by daedalus__