API17:JController::getView
From Joomla! Documentation
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
JController::getView
Description
Method to get a reference to the current view and load it if necessary.
Description:JController::getView [Edit Descripton]
Since
Synopsis
public JController::getView ($name= '', $type= '', $prefix= '', $config=array())
| Parameter | Type | Default | Description |
|---|---|---|---|
| $name | string | The view name. Optional, defaults to the controller name. | |
| $type | string | The view type. Optional. | |
| $prefix | string | The class prefix. Optional. | |
| $config | array | array() | Configuration array for view. Optional. |
Returns
object Reference to the view or an error.
Defined in
libraries/joomla/application/component/controller.php (line 767)
- see source code in BitBucket
Referenced by
See also
Examples
<CodeExamplesForm />
