Re: [SMARTY-DEV] feature request: isa operator

From: Date: Mon, 23 Jun 2003 19:26:17 +0000
Subject: Re: [SMARTY-DEV] feature request: isa operator
References: 1 2  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-1681@lists.php.net to get a copy of this message
On Wed, 18 Jun 2003, boots wrote: > Exactly, isa DOES NOT imply business logic in the template. Perhaps by itself it does not. But it does indicate a trend that I can only call alarming to expore more and more of PHP's functionality to the templates, whether through a direct access or a masqueraded one. And each subsequent feature only makes it easier for template developers to violate the MVC principle. > But just as the "is" operator provides a cleaner syntax for Smarty > users to evaluate integers, I feel "isa" is a useful sytntax for object > evaluation. Objects are indeed part of Smarty and some very smart > people happen to be using them in their template designs. And some very smart people invented sarin and hydrogen bomb. That's not much of an argument. There is no compelling reason to use objects in Smarty templates, IMHO. -Andrei * The cost of living hasn't affected its popularity. *

« previous php.smarty.dev (#1681) next »