Sorry for the stupid question -
How does one pass a variable from a php script TO the template?
I've got a file, page.php, that includes the basic instructions in the first post in this thread, ending with (eval('print_output("' . fetch_template('my_template') . '");');
It works great - 'my_template' contains $header, some html, $footer, and it renders the page as expected.
However, in page.php I also define a variable $output = "some output"; I put $output in 'my_template' but it does not print out "some output" as expected.
Again sorry I'm probalby out of my legue here but if there's an easy way to do this please let me know!
TIA!
|