Select list in form for countries

Grab the code for the Country Select List Helper here:

Save the code in a new file named: CountryListHelper.php in the folder "app/View/Helper"

Enable the helpers in CakePHP by making a controller aware of them. Each controller has a $helpers property that lists the helpers to be made available in the view. To enable a helper in your view, add the name of the helper to the controller’s $helpers array. See example below:

class LocationsController extends AppController {
public $helpers = array('Html', 'Form', 'CountryList');

To insert the Country List as a select form element, include this code in your form in the view.