Getting model name from model instance YII

Posted by Waqar on Stack Overflow See other posts from Stack Overflow or by Waqar
Published on 2010-05-13T07:45:03Z Indexed on 2010/05/13 11:54 UTC
Read the original article Hit count: 301

Filed under:
|
|

How can i get model name from model instance. For e.x.

$model=new State;

here, State is model $model is State model instance.

I want to get model name i.e State from $model i.e model instance.

© Stack Overflow or respective owner

Related posts about yii-framework

Related posts about yii