On Wed, Dec 17, 2008 at 2:10 PM, Rob Wilkerson <[email protected]> wrote:
> Would you mind expanding on that just a bit? How would I look at the
> error data? In my case, I'd like to echo back an error message. What
> structure do I look at to do so?
I may have spoken a little too soon. This code still returns the
success message, but the code below is failing on a foreign key issue
(a separate question about that to follow). Even though it's failing,
the success block is being executed. What am I missing?
if ( $this->CommercialVendor->saveAll ( $this->data ) ) {
echo 'success';
}
else {
header ( 'HTTP/1.0 500 Internal Server Error', true, '500' );
echo 'Error';
}
--
Rob Wilkerson
http://robwilkerson.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---