JView::getModel: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 4: | Line 4: | ||
Method to get the model object. | Method to get the model object. | ||
<source lang="php"> | <source lang="php"> | ||
| Line 29: | Line 29: | ||
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Application|Application]] | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Application|Application]] | ||
* [[API17:JView::getModel|Other versions of JView::getModel]] | * [[API17:JView::getModel|Other versions of JView::getModel]] | ||
===User contributed notes=== | ===User contributed notes=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JView::getModel | category=JView::getModel | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Latest revision as of 03:57, 25 March 2017
JView::getModel
Description
Method to get the model object.
public function getModel ($name=null)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $name | string | null | The name of the model (optional) |
- Returns mixed object
- Defined on line 368 of libraries/joomla/application/component/view.php
See also
JView::getModel source code on BitBucket
Class JView
Subpackage Application- Other versions of JView::getModel
User contributed notes
Code Examples