mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-07 11:54:26 +02:00
added @count to example
This commit is contained in:
@@ -133,7 +133,8 @@ where template is:
|
|||||||
</para>
|
</para>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
<select name=customer_id>
|
{* note the php count() function to set size *}
|
||||||
|
<select name=customer_id size="{$cust_options|@count}">
|
||||||
{html_options options=$cust_options selected=$customer_id}
|
{html_options options=$cust_options selected=$customer_id}
|
||||||
</select>
|
</select>
|
||||||
]]>
|
]]>
|
||||||
|
Reference in New Issue
Block a user