Returns a named Model object
public getModel ( string $name = null, array $config = [] ) : |
||
$name | string | The Model name. If null we'll use the modelName variable or, if it's empty, the same name as the Controller |
$config | array | Configuration parameters to the Model. If skipped we will use $this->config |
return | The instance of the Model known to this Controller |