cakephp - how to fetch array value in textbox not working -
echo $this->form->input($mydetails['mydetails']['specialties'] ,array("type"=>"textarea",'label' => false,'div' => false,'class'=>"umstyle5" )); here $mydetails['mydetails']['specialties'] have value text box shows empty
use 'value' attribute. first parameter of input function name of input not value
echo $this->form->input( 'mydetails.specialties' , array( "type"=>"textarea", 'label' => false, 'div' => false, 'class'=>"umstyle5" , 'value' => $mydetails['mydetails']['specialties'] ) );
Comments
Post a Comment