zen of coding

Catch database errors before it’s too late

A quiet, little method inside model.php, can actually help us out quite a bit. I am talking about the onError() callback. Here’s a snippet from the API: /** * Called when a DataSource-level error occurs. * * @access public * @link http://book.cakephp.org/view/1048/Callback-Methods#onError-1056 */ function onError() { } And the little[…]

Read More »

FU … IE7

Sorry, but this one had me going nuts (not bolts) for 2 days. When AJAX request was sent to the server in IE7, it would “magically” reset the session ID. Of course, this would cause serious problems for the end-user. Mind you, this worked perfectly well in every other browser.[…]

Read More »
%d bloggers like this: