API15:JControllerForm/getModel
From Joomla! Documentation
Description
Method to get a model object, loading it if required.
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
getModel($name= '', $prefix= '', $config=array('ignore_request'=> true))
| Parameter Name | Default Value | Description |
|---|---|---|
| $name | The model name. Optional. | |
| $prefix | The class prefix. Optional. | |
| $config | array('ignore_request'=> true) | Configuration array for model. Optional. |
Returns
object The model.
Defined in
libraries/joomla/application/component/controllerform.php
Importing
jimport( 'joomla.application.component.controllerform' );
Source Body
public function getModel($name = '', $prefix = '', $config = array('ignore_request' => true))
{
if (empty($name)) {
$name = $this->_context;
}
return parent::getModel($name, $prefix, $config);
}
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
Code Examples