Robert,
No, there is no bug, what you're trying to achieve has nothing to do
with saving data. You're creating a control mechanism where a
checkbox designates if an action should be performed on a row or not.
Cake has no built in functionality to deal with this.
One way to achieve what you want is to include in each row:
- User.n.id: hidden value
- User.n.is_selected: checkbox
When submitting the page you can then use Set::extract('/
User[is_selected=1]/id', $this->data); to pull the user ids of
selected users and then perform your action on those ids.
http://book.cakephp.org/view/1501/extract
HTH, Paul
On Sep 21, 5:58 am, rockbust <[email protected]> wrote:
> Hi Jeremy, Thank you so much for the reply. I kind of got it
> working. after searching some old posts it seems it is a possible bug
> with the security
> component.http://groups.google.com/group/cake-php/browse_thread/thread/bc953181...
>
> removed the component and got it to work fine.
> Makes me mad I wasted a whole day over a old issue. oh well...
>
> I am new to some of this but it seems I need to loop through the key/
> value array and create a new array of id's that have a 1 as the value
> (they were selected). Then implode() to store in the database.
> Am I on the right track.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php