Difference between revisions of "JView::getModel"
From Joomla! Documentation
(Layout updates) |
m (preparing for archive only) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
Method to get the model object. | Method to get the model object. | ||
− | + | ||
− | + | ||
− | |||
− | |||
− | |||
<source lang="php"> | <source lang="php"> | ||
− | public | + | public function getModel ($name=null) |
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 25: | Line 22: | ||
|- | |- | ||
|} | |} | ||
− | + | * '''Returns''' mixed object | |
− | mixed object | + | * '''Defined''' on line 368 of libraries/joomla/application/component/view.php |
− | |||
− | libraries/joomla/application/component/view.php | ||
− | |||
− | |||
===See also=== | ===See also=== | ||
− | + | * {{JVer|11.1}} '''JView::getModel source code''' on [[jplatform:application/component/view.php#cl-360|BitBucket]] | |
− | + | * {{JVer|11.1}} Class [[API17:JView|JView]] | |
− | + | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Application|Application]] | |
− | * | + | * [[API17:JView::getModel|Other versions of JView::getModel]] |
− | * [[JView::getModel|Other versions of | + | |
− | + | ||
− | ===Examples=== | + | ===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=* | ||
+ | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
− | <noinclude>[[Category: | + | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> |
Latest revision as of 22:57, 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.
JView::getModel[edit]
Description[edit]
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[edit]
JView::getModel source code on BitBucket
Class JView
Subpackage Application
- Other versions of JView::getModel
User contributed notes[edit]
Code Examples[edit]