Re: [SMARTY] Class::method() in if tags
| From: | Mark Rogers | Date: | Tue, 09 Mar 2004 10:30:50 +0000 |
| Subject: | Re: [SMARTY] Class::method() in if tags | ||
| References: | 1 2 3 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11081@lists.php.net to get a copy of this message | ||
Messju writes:
> If we want to project this to the dump-designer-theory: I don't think
> "the designer" would have more or less problems with Auth::logged_in()
> than with Auth__logged_in(). He/she just needs proper documentations
> and/or instructions.
On a related note, I've often been puzzled by the use of $x->y in templates,
when the compiler could unambiguously convert $x.y to either of $x[y] or
$x->y depending on the type of $x (and, indeed, in the latter case "y" could
be either (parameter-less) method or property). Is there a reason for this?
It seems to confuse the designers I've worked with (through no fault of
theirs; they don't see the code, after all, so from their point of view the
differences are unimportant).
Whether this could be adapted to support x::y is another matter...
--
Mark Rogers,
More Solutions Ltd :: Tel: 0845 45 89 555