Forums Sign Up Reply Search Statistics
Fast Template GraFX Software Solutions - Forum / Fast Template /

subtemplates

 
Author finso
Guest
#1 Posted: 30 Mar 2005 11:32:58
Reply 
Imagine that i have a masterpage where i dinamicaly incluye blocks of html code (ex. Header, body, footer) using fasttemplate with

{HEADER}, {BODY}, {FOOTER} components. Then



$ft->define(array(‘header’ => “header.php”));



$ft->parse(‘HEADER’, “header’);



$ft->assign(array( ‘HEADER’ => $ft->Fetch(“HEADER”);

));



But i wont that header.php have a template header.html then $ft->Fetch(“HEADER”) result the parsed header.html. Is it posible ?



Thank’s
Author software
Admin
#2 Posted: 30 Mar 2005 11:37:48
Reply 
Hi,
If you have embended templates( a main template and in it 3 subtemplates
HEADER, BODY,FOOTER)
you can use 1 main ft and 3 subfts and fetch them at the right spot.

ex:

$ft->assign( ‘HEADER’, $ft2->fetch());

where
$ft2 is the header's fasttemplate.

It is the same with the other 2 issues.
 
Your Reply

» Username  » Password 
Only registered users are allowed to post here. Please enter your login/password details upon posting a message, or sign up first.