public function getModelInstance()
    {
        if ($this->instance !== null) {
            return $this->instance;
        }
        $model = $this->getModel();
        if ($model === false) {
            return false;
        }
        $instance = new $model();

        return $instance;
    }
public function getModelInstance()
    {
        if ($this->instance !== null) {
            return $this->instance;
        }
        $model = $this->getModel();
        if ($model === false) {
            return false;
        }
        $instance = new $model();

        return $instance;
    }
public function getModelInstance ( ) { if ( $ this -> instance !== null ) { return $ this -> instance ; } $ model = $ this -> getModel ( ) ; if ( $ model === false ) { return false ; } $ instance = new $ model ( ) ; return $ instance ; }
Get an instance of a model.
@return bool
Get an instance of a model .