JController::createModel/1.6
From Joomla! Documentation
JController::createModel
Description
Method to load and return a model object.
Description:JController::createModel [Edit Descripton]
protected function createModel ( $name $prefix= '' $config=array )
| Parameter | Type | Default | Description |
|---|---|---|---|
| $name | string | The name of the model. | |
| $prefix | string | Optional model prefix. | |
| $config | array | array() | Configuration array for the model. Optional. |
- Returns mixed Model object on success; otherwise null failure.
- Defined on line 496 of libraries/joomla/application/component/controller.php
- Since Joomla 1.6 Replaces _createModel.
See also
JController source code on JoomlaCode
Class JController
Subpackage Application- Other versions of JController::createModel
SeeAlso:JController::createModel [Edit See Also]