errorHandler and exceptions

Hi there

This i have in config:




and in controller all like in manual

that’s ok, 404 and others catches by ‘site/error’ page and there is $error array exists, but the other type errors, for example CDbException, render pages like (from manual):

how can i get absolutely all errors in ‘site/error’ with $error array?

no ideas?

UP. The same question here.

Search rulez.

If YII_DEBUG is true - standard handlers used for php and other erros.

If YII_DEBUG is false - user handler begin to work for everything.