Re: [phplib] Template extensions & PHP in templates From: Spruce Weber (sprucely <email protected>)
Date: 07/26/01

I made an extension called objectTemplate that allows object methods to be
called from within the template. Method calls that return strings will
insert the string or replace an entire block with the string depending on
how the method is called. Methods that return an array of var=>val arrays
can be used to parse a block for each var=>val array. It's easy to use and
handles nested blocks to any arbitrary depth. It's actually just one
function I added to the template class from phplib 7.2c, call_objects() I
think.

----Original Message Follows----
From: Peter Bowyer <reywob <email protected>>
To: phplib List <phplib <email protected>>
Subject: [phplib] Template extensions & PHP in templates
Date: Thu, 26 Jul 2001 21:02:45 +0100

Hi list,

There are obviously a lot of template extensions knocking around which have
not been added to Template.inc, so how about listing what everyone has
here? I'll start by saying that "R.B. Scholtus" <regiment <email protected>> has
produced an extremely useful extension to delete a template block which I'm
using called del_block - I got it from the mailing list archives.

Does anyone have an extension which will allow PHP code in the templates to
be executed? I know templates are meant to separate PHP and HTML, but my
script is freely distributed and many of the users would prefer just to
include a header and footer file as they do with the rest of their site,
rather than make a special template. They also get annoyed that there is
no include feature replicating the php include()...

Cheers!
Peter

---oOo---
Do you sendcard?
http://www.sendcard.f2s.com/
PHP postcard script supporting 9 databases!
---oOo---

--
Abbestellen mit Mail an:   phplib-unsubscribe <email protected>
Kommandoliste mit Mail an: phplib-help <email protected>

_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

-- Abbestellen mit Mail an: phplib-unsubscribe <email protected> Kommandoliste mit Mail an: phplib-help <email protected>