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

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - Updating recent updates - Problem in procedure - Any other approach? -