Author Topic: cakePHP :: State select box  (Read 2017 times)

0 Members and 1 Guest are viewing this topic.

Offline _tina_Topic starter

  • Enthusiast
  • Posts: 78
    • View Profile
cakePHP :: State select box
« on: March 04, 2010, 01:46:04 PM »
Hi,

I am new to Cake and am trying to implement this state select box:
- http://bakery.cakephp.org/articles/view/country-select-list-helper

My form is like:
Code: [Select]
echo $form->input('firstname');
echo $form->input('lastname');
etc.

How do I make this work in my form?  I have the helper in views/helpers.

Any ideas?
Thanks in advance!

Offline jcombs_31

  • Guru
  • Addict
  • *
  • Posts: 2,426
    • View Profile
    • My Blog
Re: cakePHP :: State select box
« Reply #1 on: March 04, 2010, 07:51:19 PM »
Did you read the first line of code on the page?  :shrug:

<?php e( $countryList->select('country', 'Please select your country'));?>