JView:: setPath: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 4: | Line 4: | ||
Sets an entire array of search paths for templates or resources. | Sets an entire array of search paths for templates or resources. | ||
<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::_setPath|Other versions of JView::_setPath]] | * [[API17:JView::_setPath|Other versions of JView::_setPath]] | ||
===User contributed notes=== | ===User contributed notes=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JView::_setPath | category=JView::_setPath | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Latest revision as of 03:56, 25 March 2017
JView::_setPath
Description
Sets an entire array of search paths for templates or resources.
protected function _setPath (
$type
$path
)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $type | string | The type of path to set, typically 'template'. | |
| $path | array | The new set of search paths. If null or false, resets to the current directory only. |
- Returns
- Defined on line 626 of libraries/joomla/application/component/view.php
See also
JView::_setPath source code on BitBucket
Class JView
Subpackage Application- Other versions of JView::_setPath
User contributed notes
Code Examples