Friday, April 2, 2010

Re: redirecting action with data transfer to 2nd model?

ok i solved one part of it - so I can redirect to the bookings add
function.
but I am not shure about how to send data to the target.

Is it useful and a good idea to use something like adding a '?
customer_id=123,?booking_id=456" ??

[::code::]
function doBooking($id = null) {
if (!$id) {
$this->Session->setFlash(sprintf(__('Invalid %s', true),
'request'));
$this->redirect(array('action' => 'index'));
}
$this->redirect('../bookings/add');
}
[/::code::]

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

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 For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: