delboy1978uk/del-countries-flags
Composer 安装命令:
composer require delboy1978uk/del-countries-flags
包简介
Module with 235 countries and flags
关键字:
README 文档
README
delboy1978uk/del-countries-flags A module with 235 countries,4 differently sized flag images for each country, and a form select element, with view helper.
Installation: Add this to your modules array in application config: 'DelCountriesFlags'
To get a Country entity in your controller: $countryService = $this->getServiceLocator()->get('delcountriesflags_service'); $country = $countryService()->getCountry('ESP'); //or GBR, USA, etc
To get a dropdown select element of countries: $select = $countryService()->getCountriesFormSelectElement();
Flag image urls: http://yoursite/flag/medium/FRA
Url allowed sizes: tiny small medium large
View Helpers: echo $this->delCountriesFlagsName('ESP'); //Country name echo $this->delCountriesFlagsFlag('ESP','tiny'); //Flag image, same sizes as above echo $this->formSelect($this->delCountriesFlagsSelectDropdown());
Flag images from Flags of all Countries. If you like and use these flags please give them a link back to their site!
统计信息
- 总下载量: 54
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2012-11-03