Issue
i want change the name of the input to make it name=data[Contact][firstname] because I want to display the data when i click edit() i guess that is the reason why it is not displaying. echo $this->Form->input('First Name:', array('class'=>'form-control')); the name of the input is same n the first param. please help
Solution
Your code should be like this:
echo $this->Form->input('firstname', array('class'=>'form-control','label'=>'First Name'));
Answered By - Malik Perang Answer Checked By - Clifford M. (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.