Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Flag helper for CodeIgniter. It lets you make a select dropdown with a list of countries.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 gif
Octocat-spinner-32 helpers
Octocat-spinner-32 README
Octocat-spinner-32 README.textile
README.textile

Flags Helper

Version: v0.2
Author: Demostenes Garcia (me [at] demogar.com / www.demogar.com)

DESCRIPTION

This is a CodeIgniter Helper. It makes a dropdown select with a list of Countries. The value of the country is determined by the ‘ISO 3166-1 alpha-2’ codes.
It’s a perfect solution if you need a list of countries usable with the famfamfam flags.

I also added the fam fam fam flags in gif format.

USAGE

It’s quite simple:
# We load the helper
$this→load→helper(‘flags’);

# Then we echo the dropdown. The first value is the name of the dropdown and the second value is the default value.
echo select_countries(‘flags’, ‘pa’);

ABOUT FAM FAM FAM ICONS

famfamfam.com is the website of Mark James, a web developer from Birmingham, UK. These icons are public domain, and as such are free for any use (attribution appreciated but not required).
If you find these icons useful, please donate via paypal to mjames@gmail.com (or click the donate button available at http://www.famfamfam.com/lab/icons/silk)
Contact: mjames@gmail.com

MORE

Something went wrong with that request. Please try again.