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

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -