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