Re: [SMARTY] Assign a template to a variable....
| From: | Oscar Fernandez Sierra | Date: | Tue, 28 May 2002 16:37:03 +0000 |
| Subject: | Re: [SMARTY] Assign a template to a variable.... | ||
| References: | 1 2 3 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-4415@lists.php.net to get a copy of this message | ||
Hello,
I think the documentation needs an update:
http://smarty.php.net/manual/en/language.function.section.html
Attribute Name: loop
Type: [$variable_name]
Required: Yes
Default: n/a
Description: The name of the variable to determine # of loop iterations
The description doesn't seem very exact, because in the example you can see below
you can say loop=1
Greetings.
Andrei Zmievski wrote:
>
> On Mon, 27 May 2002, Peter Bowyer wrote:
> > How about removable sections like PHPLib templates?
> >
> > {section name=foo loop=1 show=$show_foo}
>
> loop=1 is the default if omitted.
>
> > if ($form == TRUE) {
> > $smarty->assign('show_foo', 1)
>
> Assign true of false here, please.
>
> -Andrei
> http://www.gravitonic.com/
>
> Some people sell razors. Other people sell razor blades. Microsoft
> sells shaving cream containing 5% hair growth hormone.
> -- sigwinch, posting to Kuro5hin
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
Oscar Fernandez Sierra | Mundinteractivos - El Mundo |
Area de Internet | Pradillo, 42 |
oscar@el-mundo.net | 28002 - Madrid (SPAIN, EU) |
http://www.elmundo.es/ | Tel: (+34) 915864800 (Ext: 4616) |