Re: [SMARTY-DEV]Re: Is this plugin useful?

From: Date: Wed, 09 Apr 2003 20:17:13 +0000
Subject: Re: [SMARTY-DEV]Re: Is this plugin useful?
References: 1 2 3 4  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-1123@lists.php.net to get a copy of this message
hi... i also agree a "die" is bad, especially in templates. BUT my suggestion is to implement a "return". that would only stop the execution of the actual template at the current point (as you know templates are simple php-includes), and all output done so far is displayed or fetched. IMHO some "return"s is really more readable than many nested "if"s bye... Nagger PS: also think about a "break" and a "continue" for section loops. sometimes it could be pretty handy.

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