Difference between revisions of "JController::getModel"
From Joomla! Documentation
m (JoomlaWikiBot moved page JController::getModel/11.1 to API17:JController::getModel without leaving a redirect: Robot: Moved page) |
m (preparing for archive only) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
Method to get a model object, loading it if required. | Method to get a model object, loading it if required. | ||
− | + | ||
− | + | ||
− | |||
− | |||
<source lang="php"> | <source lang="php"> | ||
public function getModel ( | public function getModel ( | ||
Line 43: | Line 41: | ||
===See also=== | ===See also=== | ||
* {{JVer|11.1}} '''JController::getModel source code''' on [[jplatform:application/component/controller.php#cl-673|BitBucket]] | * {{JVer|11.1}} '''JController::getModel source code''' on [[jplatform:application/component/controller.php#cl-673|BitBucket]] | ||
− | * {{JVer|11.1}} Class [[JController | + | * {{JVer|11.1}} Class [[API17:JController|JController]] |
− | * {{JVer|11.1}} Subpackage [[Subpackage_Application | + | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Application|Application]] |
− | * [[JController::getModel|Other versions of JController::getModel]] | + | * [[API17:JController::getModel|Other versions of JController::getModel]] |
− | + | ||
− | + | ||
− | |||
− | |||
===User contributed notes=== | ===User contributed notes=== | ||
− | + | === Code Examples === | |
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JController::getModel | category=JController::getModel | ||
− | + | namespace=CodeExample | |
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Line 61: | Line 57: | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
− | <noinclude>[[Category: | + | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> |
Latest revision as of 21:31, 24 March 2017
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JController::getModel[edit]
Description[edit]
Method to get a model object, loading it if required.
public function getModel (
$name= ''
$prefix= ''
$config=array
)
Parameter | Type | Default | Description |
---|---|---|---|
$name | string | The model name. Optional. | |
$prefix | string | The class prefix. Optional. | |
$config | array | array() | Configuration array for model. Optional. |
- Returns object The model.
- Defined on line 681 of libraries/joomla/application/component/controller.php
- Since
See also[edit]
- JController::getModel source code on BitBucket
- Class JController
- Subpackage Application
- Other versions of JController::getModel
User contributed notes[edit]
Code Examples[edit]