Hi,
I turned off YII_DEBUG variable in index page.
But Yii prints sql errors when there are errors in sql queries.
Is there a way to stop YII from displaying sql errors(with table names, columns) when YII_DEBUG is off.
thanks,
Chamal.
Hi,
I turned off YII_DEBUG variable in index page.
But Yii prints sql errors when there are errors in sql queries.
Is there a way to stop YII from displaying sql errors(with table names, columns) when YII_DEBUG is off.
thanks,
Chamal.
are you sure that is Yii error??
what about standard PHP error?
could you paste here a screen shot?
Hi funner,
It is not a YII error. Error is in sql.
I attached a screen shot. That error happened to me when a sql executed violates unique key constraint in database.
(At that time i did not know about unique validation rule).
Thanks,
Chamal.