Re: [PHP] Re: A couple questions about templating

2005-05-11 Thread Rory Browne
Anyways, I restructered my code, and as far as I can see there is nothing wrong with the code, except for that it simply doesn't work :) That's usually considered a fairly serious problem. I'm probably missing something blatently obvious but I'll post it and maybe someone can spot why this

Re: [PHP] Re: A couple questions about templating

2005-05-11 Thread James Williams
Well, I made it work now, and I even got a cache built in there (kindof stupid though, I need to make it smarter.) I figured out to use the assign function to add the curly brackets, thank-you. I'll look into the file_*_contents() functions, thanks. On 5/11/05, Rory Browne [EMAIL PROTECTED]

Re: [PHP] Re: A couple questions about templating

2005-05-11 Thread James Williams
I took a look at those functions, and file_put_contents() is only php5... this needs to work w/ php4 so that's not an option. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: A couple questions about templating

2005-05-10 Thread Rory Browne
This has all been done before, and in a number of ways. If you really *must* build your own templating class, go and thoroughly review the code of those that already exist: Smarty, Savant, paTemplate, FastTemplate, etc. Figure out how each solved the problems. Then determine if you can

Re: [PHP] Re: A couple questions about templating

2005-05-10 Thread Matthew Weier O'Phinney
* Rory Browne [EMAIL PROTECTED]: This has all been done before, and in a number of ways. If you really *must* build your own templating class, go and thoroughly review the code of those that already exist: Smarty, Savant, paTemplate, FastTemplate, etc. Figure out how each solved the

Re: [PHP] Re: A couple questions about templating

2005-05-10 Thread M Saleh EG
What is the purpose of your templating system? And what does it solve? These questions are the ones I'd ask myself if I was creating one. However, there are a lot of them out there so does your templating system solve a problem and is a solution? or just yet another templating class? As its

Re: [PHP] Re: A couple questions about templating

2005-05-10 Thread Ryan A
clip Templating is tricky. It adds overhead on the processing end, but increases developer/designer efficiency. Finding a happy medium is the challenge. /clip Yep, the last medium I found could communicate with the spirits fine...but she was real unhappy with life in general :-p Cheers,

Re: [PHP] Re: A couple questions about templating

2005-05-10 Thread Ryan A
On 5/10/2005 11:15:47 PM, [EMAIL PROTECTED] wrote: snip Yep, the last medium I found could communicate with the spirits fine... but she was real unhappy with life in general /snip LOL! ... now that's not PHP talk =P Strange, from the time I joined this list I keep hearing about

Re: [PHP] Re: A couple questions about templating

2005-05-10 Thread James Williams
Okay well I see I have reopened the can of worms lol. This has all been done before, and I'm assuming that the James knows, and has seen that before, since he used the same common method names, as is in many php templating systems. $class-assign has been used in any templating system I've

[PHP] Re: A couple questions about templating

2005-05-09 Thread Matthew Weier O'Phinney
* James Williams [EMAIL PROTECTED]: Hey fellas, sorry to infest the list with another question about a templating engine, but I am looking for some professional opinions here... I am trying to make a small, fast, and simple templating class... Now I have mastered the art of variable