title: Getting model name from model instance YII
body: <p>How can i get model name from model instance.
  For e.x.</p>
  
  <p>$model=new State;</p>
  
  <p>here,
  State is model
  $model is State model instance.</p>
  
  <p>I want to get model name i.e State from $model i.e model instance.</p>