It's not advisable to do so.
The "chunk templates" are parsed into a kind of "chunked buffered output" using the powerful 'eval()'.
If you have a previously filled variable, set inside a script, then you can use that variable inside the tempate, and it will be automatically "expanded" like a normal 'string' would be.
By starting to add actual PHP code, you should expect random results.
Do the PHP coding inside the relevant scripts, storing data into a variable, then place the variable name including the '$' character inside the template. It will get "expanded", outputting your dynamic content.
Study a few of the smaller hacks on this website, and you should get the idea quickly on how the system works.
|