Re: [PHP] Including files for templates

2008-03-24 Thread Eric Butera
On Sun, Mar 23, 2008 at 7:32 AM, Terry Burns-Dyson <[EMAIL PROTECTED]> wrote: > I'm trying to write a template system, my template is the HTML layout, and > my content is fetched from another source. However I don't quite understand > how to output the template so that all the variables are parse

Re: [PHP] Including files for templates

2008-03-24 Thread Philip Thompson
On Mar 23, 2008, at 12:10 PM, Daniel Brown wrote: On Sun, Mar 23, 2008 at 6:32 AM, Terry Burns-Dyson <[EMAIL PROTECTED]> wrote: [snip!] $pageTitle is in the template, it's replaced, $pageContent is in the template, it's replaced. But any variables within the page_to_display are simply output i

Re: [PHP] Including files for templates

2008-03-23 Thread Daniel Brown
On Sun, Mar 23, 2008 at 6:32 AM, Terry Burns-Dyson <[EMAIL PROTECTED]> wrote: [snip!] > $pageTitle is in the template, it's replaced, $pageContent is in the > template, it's replaced. But any variables within the page_to_display are > simply output into the page rather than processed by PHP. I

[PHP] Including files for templates

2008-03-23 Thread Terry Burns-Dyson
I'm trying to write a template system, my template is the HTML layout, and my content is fetched from another source. However I don't quite understand how to output the template so that all the variables are parsed by PHP. Simple version of what I'm trying to do; ob_start( ); extract( $params