RE: breaking from loops

From: Date: Wed, 27 Feb 2002 16:21:49 +0000
Subject: RE: breaking from loops
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2865@lists.php.net to get a copy of this message
--- Dominique Peretti <dperetti@noos.fr> wrote: > I don't agree totally with that. > Smarty is more than a template engine. > The "view" has its own logic that shouldn't be dealt with by the > "model" logic. The "view" (templates) should have as little logic as possible. The "controller" (PHP scripts) should contain most of the logic. The "model" is used by the controller so it should have nothing to do with this discussion. > It's great that Smarty allows total separation of both logics, by > giving the > templates advanced functions and control structures. > Moreover, considering the {break} thing, I don't think the impact > on > performance would be such a big deal... In programming little added things like that multiplied many times per each new functionality make for a bloated program. Brent __________________________________________________ Do You Yahoo!? Yahoo! Greetings - Send FREE e-cards for every occasion! http://greetings.yahoo.com

« previous php.smarty.general (#2865) next »