CakePHP Form Helper input date -


i have following code in view:

$this->form->input('born'); 

which date field , i'm see if possible have different empty text each select box like: [month |v][day |v][year |v].

has come across doing this? appreciated.

you can this:

echo $this->form->input('born', array( 'label' => 'date of birth',     'dateformat' => 'dmy',     'minyear' => date('y') - 70,    'maxyear' => date('y') - 18 )); 

they dropdowns not empty text fields. can read more form helper , automagic forms here:

http://book.cakephp.org/#!/view/1390/automagic-form-elements


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -