public function model($name, $config = [])
    {
        $config["class"] = $this->modelClasses[ucfirst($name)];
        return Yii::createObject($config);
    }
public function model($name, $config = [])
    {
        $config["class"] = $this->modelClasses[ucfirst($name)];
        return Yii::createObject($config);
    }
public function model ( $ name , $ config = [ ] ) { $ config [ "class" ] = $ this -> modelClasses [ ucfirst ( $ name ) ] ; return Yii :: createObject ( $ config ) ; }
Get object instance of model
@param string $name
@param array  $config
@return ActiveRecord
Get object instance of model