Re: HTML_Template_Flexy
| From: | Alan Knowles | Date: | Mon, 14 Jun 2004 09:05:44 +0000 |
| Subject: | Re: HTML_Template_Flexy | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-13140@lists.php.net to get a copy of this message | ||
function outputFooter() {
$t = new HTML_Template_Flexy();
$t->compile('footer.html');
$t->outputObject($this);
}
In the template..
{outputFooter():h}
or:
<flexy:include src="footer.html">
Regards
Alan
Martin Sarajervi wrote:
* Martin Sarajervi (ms@klmoberg.no) wrote:-- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.comHi, I'm testing HTML_Template_Flexy for my template-system, but can't make it work. My sample code: http://www.pastebin.com/73424 This just displays a blank page. What am I doing wrong?Ok, I found my mistake. I was missing the $output->outputObject($this); Another question: What's the best way to build header - main - footer with a templatesystem like this? I need to build a class for each page I want? - Martin