|
Posted by boots on 06/18/05 02:32
Joe, once again an unfair assessment.
Smarty arrived on the scene long before PHP5 was a twinkle in anyone's
eye. It continues to do what it always did and it does that on PHP5 as
well as it does it on PHP4. How should we judge firefox on the fact
that it doesn't fully support CSS3? Or CSS4 (which doesn't even exist
yet) There is another difference. Not supporting CSS1 properly is
breaking a well regarded standard (and for the record, IE supported CSS
before there was a CSS standard). On-the-other-hand, PHP5 is not a
standard -- not even defacto.
I'm merely trying to explain why certain PHP5 features are presently
not implemented in the PHP4 library known as Smarty. I find that your
use of that as ammunition to compare Smarty development to IE
development as being rather inelegant.
Cheers,
xo boots
--- Joe Stump <joe@joestump.net> wrote:
> > Never-the-less, I take exception to one statement: Smarty is not
> > broken
> > for PHP5. It simply doesn't support everything that PHP5 can do
> which
> > is very different than being broken.
>
> By this same rational IE's support for CSS isn't broken, it just
> doesn't support everything that CSS can do.
>
> --Joe
>
>
> >
> > Best,
> > xo boots
> >
> > --- Joe Stump <joe@joestump.net> wrote:
> >
> >> Wait. I'm confused. {$foo->bar()->display()} would break backwards
> >> compatibility, but rewriting Smarty for PHP5 wouldn't? Plus, how
> >> would allowing for {$foo->bar()->display()} break Smarty's ability
> to
> >>
> >> run on PHP4? It would only break that template's ability to run on
> >> PHP4.
> >>
> >> I see a few solutions here:
> >>
> >> 1.) Just make it so Smarty can handle PHP5 dereferencing. This
> would,
> >> of course, break the templates (again, not Smarty itself), if they
> >> were ran under PHP4.
> >>
> >> 2.) Have two versions of Smarty (2.x is PHP4, 3.x is PHP5). I'm
> sure
> >> this is probably already in progress to some degree (PHPUnit and
> >> phpDocumentor both have dual versions out right now).
> >>
> >> The fact still remains - Smarty is broken under certain
> circumstances
> >> for PHP5. To get around this problem you will have to do the
> >> following:
> >>
> >> {assign var="bar" value=$foo->getClass()}
> >> {$bar->display()}
> >>
> >> --Joe
Navigation:
[Reply to this message]
|