Re: Passing data from the view to the controller

2009-08-28 Thread Miles J
Just grab the id from the actions ID argument. --~--~-~--~~~---~--~~ 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

Re: Passing data from the view to the controller

2009-08-28 Thread Melgior
: if ($data['Post']['postIdKey'] == sha1(Configure::read('Security.salt').$data['Post']['id'])) Miles J wrote: Just grab the id from the actions ID argument. -- View this message in context: http://www.nabble.com/Passing-data-from-the-view-to-the-controller-tp25180826p25186878.html

Passing data from the view to the controller

2009-08-27 Thread Robert Popplewell
I am trying to add a comments area to a simple blog application and I would like to pass the id of a specific blog post to the comments controller. The only example I can find involves setting a hidden form field and passing it via the form data... echo $form-hidden('Comment.post_id',

Re: Passing data from the view to the controller

2009-08-27 Thread brian
Look into the Security component. However, I have to ask: so what? If a user is determined to be a jackass, this is one of the least things I'd be concerned about. On Thu, Aug 27, 2009 at 1:18 PM, Robert Popplewellr0b...@gmail.com wrote: I am trying to add a comments area to a simple blog

Re: Passing data from the view to the controller

2009-08-27 Thread Robert Popplewell
I'd rather it werent possible for some random jackass to post comments to ANY published/unpublished post :p Regardless of how far down the list, it is still a concern! 2009/8/28 brian bally.z...@gmail.com Look into the Security component. However, I have to ask: so what? If a user is