Re: Template ? focus on PHP5

From: Date: Tue, 06 Jul 2004 07:33:29 +0000
Subject: Re: Template ? focus on PHP5
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-31616@lists.php.net to get a copy of this message
Hi Alan Knowles! Just wanna give my 2 ct. on that template stuff, since I did not comment on all that, yet. You wrote: > Considering this may take many months before it delivers anything more > than what Savant currently is, what are your thoughts on making Template > a PHP5 only package?. I would definitly like seeing the new Template being PHP5 only. PHP4 has a huge bunch of well established template classes, which are wide spread and IMHO nobody will switch his PHP4 template solution right now. > eg. > a) Throws PEAR_Exception, on anything that could cause the using > application problems. Ack. In general I would preferr it to use ErrorStack, since you can define error classes in a very fine-grained way and have integrated logging and debugging facilities. Exceptions work quite fine with it. > b) use extra arguments for warnings ?? - until a lightweight warning > mechansim can be worked out.. Should work with ErrorStack. > c) use all the protected / private etc. > d) Type Hints Only where necessary and really usefull. I admit, I'm not a big fan of that typehint stuff. It's a nice replacement for some "is_a()" structures, but has a very limited scope. Regards, Toby -- Tobias Schlitt GPG Key: 0xA6529579 a passion for php http://www.schlitt.info Like to say "thank you"? - http://pear.php.net/wishlist.php/toby

« previous php.pear.dev (#31616) next »