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

From: Date: Wed, 10 Apr 2002 14:47:55 +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-1126@lists.php.net to get a copy of this message
On 04.09.2002 4:22 am, "Bertrand Mansion" <bmansion@mamasam.com> wrote: > 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. Hi, Thanks, I found it yesterday. It doesn't seem to be well documented, but it's the touchBlock() method in IT if anyone else is ever interested in knowing this detail! -f

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