Wednesday, September 5, 2012

Population values in a form in element view



Hi All,

I have a Form which contains only checkbox with different Attributes.I have  a array with key value pair of name of the  input field and check box values and i have passed the same to the view. I am using that form in the another view as a element however as a element it doesn't populates values by itself.
 
How can i populate the checked to the form by the array or i have to check them one by one for every field.  

I created view for the function  to check is it working in its own view, and it is populating it automatically,  Can some one tell where i have the problem.
do i need to set the array variable in the parent action.? 

--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
 
 

No comments: