Re: [PHP] Template style question

2005-11-08 Thread Robert Cummings
On Tue, 2005-11-08 at 20:21, Richard Lynch wrote: > On Tue, November 8, 2005 6:23 pm, Robert Cummings wrote: > > > > I don;t think your the target audience, you don't see the need for OOP > > either :/ > > au contraire! > > I see [have seen] many needs for OOP. > > The largest group of those nee

Re: [PHP] Template style question

2005-11-08 Thread Leonard Burton
HI All, Here is what I have done for now. title [[header]] [[sql sql="select user, level, ts from users order by user"]] UserClearanceTimestamp @[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED] [[footer]] Fist I preg_split the template on each tag designed for the template (i.

Re: [PHP] Template style question

2005-11-08 Thread Richard Lynch
On Tue, November 8, 2005 6:23 pm, Robert Cummings wrote: > On Tue, 2005-11-08 at 19:04, Richard Lynch wrote: >> On Sat, November 5, 2005 5:03 pm, Leonard Burton wrote: >> > On 11/5/05, Robert Cummings <[EMAIL PROTECTED]> wrote: >> >> On Sat, 2005-11-05 at 14:55, James Benson wrote: >> >> > Give sma

Re: [PHP] Template style question

2005-11-08 Thread Robert Cummings
On Tue, 2005-11-08 at 19:04, Richard Lynch wrote: > On Sat, November 5, 2005 5:03 pm, Leonard Burton wrote: > > On 11/5/05, Robert Cummings <[EMAIL PROTECTED]> wrote: > >> On Sat, 2005-11-05 at 14:55, James Benson wrote: > >> > Give smarty a try rather than re-inventing the wheel > >> > > >> > http

Re: [PHP] Template style question

2005-11-08 Thread Richard Lynch
On Sat, November 5, 2005 5:03 pm, Leonard Burton wrote: > On 11/5/05, Robert Cummings <[EMAIL PROTECTED]> wrote: >> On Sat, 2005-11-05 at 14:55, James Benson wrote: >> > Give smarty a try rather than re-inventing the wheel >> > >> > http://smarty.php.net > > Reinventing the wheel is much better tha

Re: [PHP] Template style question

2005-11-08 Thread Richard Lynch
On Sat, November 5, 2005 1:10 pm, Leonard Burton wrote: > Greetings, > > HI All, I hope all is well. > > I have set up a template parser. Basically, it parses the template > and finds tags with tag_name.dat file and then includes the > tag_name.dat file. I have considered a few other options but

Re: [PHP] Template style question

2005-11-06 Thread Stephen Leaf
One idea that you might try. is XSL. instead of doing %var1% and doing a replace. you can do things like Doing this also completely separates presentation logic from the code. you can do other fun things like loops also. I will warn you by saying that XSL in the beginning is a real headache to fi

Re: [PHP] Template style question

2005-11-05 Thread Florent Monnier
Perhaps you could get inspirations and tips from: http://pear.php.net/search.php?q=template&in=packages -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php