states

Creates a dropdown list of states from the US, US Territories and Canada
4 followers

Creates a dropdown list of states from the US, US Territories and Canada

GitHub

Requirements

  • Yii 1.1.x

Install

  • Extract to extensions directory
  • Add following to the import section of the main config
  • 'application.extensions.states.*'

Usage

$options = array(
  "name" => "thestates",
  "seperateCountries" => true,
  "selected" => "VA",
);
$htmlOptions = array(
  "prompt" => "Please select a state",
);
 
echo States::render(array("US","canada","us territories"), $options, $htmlOptions);

Total 5 comments

#7835 report it
gork4life at 2012/04/21 12:14pm
Thanks for the extension

My question is do I store this in database as varchar or text, enum?

#6773 report it
Ruaan at 2012/02/03 08:31pm
Thank you

Got it to work :-) It was simple . Thank you for the quick response and awesome extension..

#6745 report it
cfletcher1856 at 2012/02/02 10:19am
Usage

Hi Ruaan,

Did you not see the install and usage sections above?

What problems are you running into?

@dungdeveloper, I'm glad that the extension helped you out.

#6733 report it
Ruaan at 2012/02/01 06:53pm
help

How do I use this extension ?

#5759 report it
dungdeveloper at 2011/11/10 12:36am
thank you

Thanks for your extension. It helps me alot!

Leave a comment

Please to leave your comment.

Create extension
Downloads