Re: modify controller to have access to last error

2006-07-08 Thread Poncho

The database abstraction code has a method "lastError" that you could
call, something like this:

{$this->name}->lastError();
return $error;
}
?>

This is untested, but I think it'll work :-)

Cheers;
Poncho


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



modify controller to have access to last error

2006-07-07 Thread rpetrain

Has anyone modified app_controller.php to have access to the database
connection object so you have access to the previousError?

If so can you put a snippet in here showing how you did it?

I have been trying but I am not quite there. I have access to the
object but apparently I am not using the right property or method.

Thanx.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---