script exit normally.
Firebug doesn't show any error.
It seems model class can not load data from database, but why I can not figure out. All other actions of this model worked as I expected.
What do I do wrong in this action?

Two things that I would consider checking at first glance. First of all, are you deleting via a form (POST request). If you try do access the delete action using the url it won't work as it fails the if-statement. Secondly, have you altered the loadModel() method at some point? What value does $model have right after it is being assigned to?

Two things that I would consider checking at first glance. First of all, are you deleting via a form (POST request). If you try do access the delete action using the url it won't work as it fails the if-statement. Secondly, have you altered the loadModel() method at some point? What value does $model have right after it is being assigned to?

It seems to me findByPk function is not working.
I tried to use findByPk function of Registration model, it is not working, I mean not getting datas from db. I tested it in view action of my controller, the result the same, no data, just blank web page.
The other models which extended from parent of this problematic model are working normally.
I don't know to which direction dig.