Re: Block functions
| From: | Monte Ohrt | Date: | Tue, 26 Mar 2002 15:33:09 +0000 |
| Subject: | Re: Block functions | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-3353@lists.php.net to get a copy of this message | ||
Would this always work as expected, such as nested blocks? It might be
better to just explicitly give the value you need.
{myform name="blabla"}
{my_checkbox name="foo" formname="blabla"}
{/myform}
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. And what about built-in tags like {section} and
> other ones?
>
> -Andrei
>
> For society, it's probably a good thing that engineers value function over
> appearance. For example, you wouldn't want engineers to build nuclear power
> plants that only _look_ like they would keep all the radiation inside.
> (Scott Adams - The Dilbert principle)
>
> ---
> You are currently subscribed to smarty as: monte@ispi.net
> To unsubscribe send a blank email to $subst('Email.Unsub')
> Visit Smarty's homepage at
> http://www.phpinsider.com/php/code/Smarty/
--
Monte Ohrt <monte@ispi.net>
Director of Technology, ispi Inc.