CakePHP form helper problem with date for editing -


i'm quite newbie in cakephp, i've tried create form form helper on date field

echo $this->form->input('item.date'); 

yes, works fine (i'm using cakephp v1.3.3) input/add new record when try using on edit page nothing. here's code

echo $this->form->input('item.date', array("value"=>$rs['item']['date'])); 

it still display listbox without retrieving value desired table. appreciated, sorry english..

you shouldnt use inline params default values. pass them down controller:

http://www.dereuromark.de/2010/06/23/working-with-forms/

see "default-values"


Comments

Popular posts from this blog

drupal - using views argument in the view tpl.php file -

php - Posting PHPBB Forum Thread/Post info in a website -

php - Add a blog by sending a mail to a certain emailadress -