⇦  Back to MVCFactoryInterface classMethod createModel
public \Joomla\CMS\MVC\Model\ModelInterface
createModel
(mixed $name, mixed $prefix = '', array $config = [])
Method to load and return a model object.
Parameters
- string  $name  The name of the model.
 - string  $prefix  Optional model prefix.
 - array  $config  Optional configuration array for the model.
 
Returns
- \Joomla\CMS\MVC\Model\ModelInterface The model object
 
Since
-
Method createModel - Source code
/**
 * Method to load and return a model object.
 *
 * @param   string  $name    The name of the model.
 * @param   string  $prefix  Optional model prefix.
 * @param   array   $config  Optional configuration array for the model.
 *
 * @return  ModelInterface  The model object
 *
 * @since   3.10.0
 * @throws  \Exception
 */
public function createModel($name, $prefix = '', array $config = []);