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

From: Date: Tue, 24 Jun 2003 13:40:47 +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-1691@lists.php.net to get a copy of this message
On Mon, 23 Jun 2003, boots wrote: > the only one that Smarty can be used with. Cripes, PHP is not even a > full OOP language, so why suggest that Smarty MUST be a MVC pattern > enabler? MVC has nothing to do with OO programming, by the way. > I'll say it again. Objects are a valid type and variable in PHP. Smarty > is a PHP specific template engine -- it replaces variables. Ergo, it > must support objects on PHP. Uh, not quite. Smarty is not a substitution for PHP - it is a specific, domain-reduced abstraction over the functionality that PHP provides. > Very simple. Otherwise an objects have to turned into arrays (perhaps > nesting) so that they can be assigned to Smarty. How wasteful is that? I have no problem with assigning objects to templates, as long as only the object member variables are accessed. Calling methods is another thing altogether. > using my templates, how do you know what should go in them? Smarty is > NOT a rigid framework. I REPEAT, Smarty is NOT a rigid framework! Thanks for the tip. I wasn't aware of that. -Andrei "You are never given a wish without also being given the power to make it come true. You may have to work for it, however." - Richard Bach

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