[Phplib-users] Using more than one template instance on a single page
Brought to you by:
nhruby,
richardarcher
From: Rogers, P. <Pau...@mo...> - 2002-12-17 09:17:43
|
Dear All I am trying to separate some logic in an application. The easiest way seem sto be to use two template instance with two separate roots (I've also considered using one template instance and setting the root part way thru). What I'd like to do is something like this: $page = new pagemaker("/some/directory"); (where pagemaker extends template) $content = new Template("/some/other/directory"); $page->set_file(array( "page" => "page.ihtml", "header" => "header.ihtml")); $templ->set_file(array( "content" => "content.ihtml", "content_dbout" => "content_dbout.ihtml")); <Code to set variables blocks etc in both template instances> Having done this how do I then combine the content of the two instances using parse and print? Can I use get_vars? Paul ***************************************************************************** This email and any attachments transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender and do not store, copy or disclose the content to any other person. It is the responsibility of the recipient to ensure that opening this message and/or any of its attachments will not adversely affect its systems. No responsibility is accepted by the Company. ***************************************************************************** |