mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 03:14:27 +02:00
added @count to example
This commit is contained in:
@@ -133,7 +133,8 @@ where template is:
|
||||
</para>
|
||||
<programlisting>
|
||||
<![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}
|
||||
</select>
|
||||
]]>
|
||||
|
Reference in New Issue
Block a user