Html View

This method is used to get the model object.

  • string $name - The name of the model (optional)
  • return mixed - \JModelLegacy object
public function getModel($name = null)
{
if ($name === null)
{
$name = $this->_defaultModel;
}

return $this->_models[strtolower($name)];
}