countryTag

Navigation:  Development > Function Reference > Helpers > Html >

countryTag

Previous pageReturn to chapter overviewNext page

Create country drop down list.
 
App::Html()->countryTag(Name,[Default Value],[Option]);

 

Parameter

Description

Name

Name of the Input element

Default

Default selected value

Options

HTML Attributes

 

See bellow example:

 

echo App::Html()
    ->countryTag(
        "data[Member][country]",
        "US",
        array(
            "id"=>"country"
        )
    );
 
/* 
Return value 
<select name="data[Member][country]" id="country">

  <option value=""></option>

  <option value="AF">Afghanistan</option>

  <option value="AL">Albania</option>

  -----------------------------------

  <option value="ZM">Zambia</option>

  <option value="ZW">Zimbabwe</option>

</select>
*/