Core/Framework/Amvc/App/AbstractApp.php
public function getModel(string $name = '')
    {
        if (empty($name)) {
            $name = $this->getComponentsName();
        }

        // Create a model instance from a different app?
        $model = $this->MVCFactory($name, 'Model');

        return $model;
    }
public function getModel(string $name = '')
    {
        if (empty($name)) {
            $name = $this->getComponentsName();
        }

        // Create a model instance from a different app?
        $model = $this->MVCFactory($name, 'Model');

        return $model;
    }
public function getModel ( string $ name = '' ) { if ( empty ( $ name ) ) { $ name = $ this -> getComponentsName ( ) ; } // Create a model instance from a different app? $ model = $ this -> MVCFactory ( $ name , 'Model' ) ; return $ model ; }
Creates an app related model object form this or a different app

@param string $name
The models name
@param string $app_name
Name of a different app to get the model from

@return Model
Creates an app related model object form this or a different app