TemplatesControllerTemplate::getModel
Method to get a model object, loading it if required.
Signature
public function getModel([string
$name = 'Template',
[string
$prefix = 'TemplatesModel',
array
$config]] )
Parameters
-
$name
- The model name. Optional.
-
$prefix
- The class prefix. Optional.
-
$config
- Configuration array for model. Optional (note, the empty array is atypical compared to other models).
Returns
- JModelLegacy
- The model.