Re: Block functions

From: Date: Tue, 26 Mar 2002 16:06:05 +0000
Subject: Re: Block functions
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3364@lists.php.net to get a copy of this message
Andrei Zmievski wrote: > On Tue, 26 Mar 2002, Anders Janson wrote: > > Yes. > > Example 1: > > {myform name="blabla"} > > {my_checkbox name="foo"} > > {/myform} > > > > The Javascript for the input (checkbox) needs to know the name of the form it is > > located in. > > That would require keeping track of attributes of custom functions as > well as block functions. Nope, since custom functions are just one single tag. Attributes of a custom function only exist in the scope of that single tag. A custom function should have access to the stack though. > And what about built-in tags like {section} and > other ones? Well, if the structure is like {sometag}...{/sometag}, then why not? OTOH, I can not find any built-in function where it would make sense. /Anders

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