So if I'm reading this right - the code you are referring to is part of $template['template'] ?
If that's the case then yes, you will simply get the code - as all you are doing is getting the contents and storing them in $myxml. You would need to eval the contents - and they would need to be in a format that eval can handle.
Alternatively, you could store some unique text in the template where the value should go, and do a replacement on it after getting the contents.
|