Re: Real world usage of IT [template] class?

From: Date: Tue, 09 Apr 2002 08:22:10 +0000
Subject: Re: Real world usage of IT [template] class?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-1113@lists.php.net to get a copy of this message
le 9/04/02 8:01, derek fong à fong@subtitled.com a écrit : > On 04.04.2002 11:27 am, "Bertrand Mansion" <bmansion@mamasam.com> wrote: > >> I already posted a small example of addBlockFile usage : >> >> http://marc.theaimsgroup.com/?l=pear-dev&m=100498428025588&w=2 >> >> It is stable now, just make sure you use the last versions. > > The problem is I can't seem to include the static menu.tmpl.html file. I > can do it if I use getFile and then use setVariable on the result, but this > would prevent me from being able to use any other placeholders in > menu.tmpl.html in the future and I'm thinking there must be a more > straightforward method than this. Why isn't addBlockFile working for me? I think you need to have at least one placeholder in menu.tmpl.html in order to make it work as an external template file, but I am not totally sure. If you just want to include an external html file (not a template), I think someone added an include type of placeholder that does just that. It is directly in IT, have a look at the class code. Good luck, Bertrand Mansion Mamasam

« previous php.pear.general (#1113) next »