JView:: setPath: Difference between revisions
From Joomla! Documentation
Layout updates |
m preparing for archive only |
||
| (5 intermediate revisions by 2 users not shown) | |||
| 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"> | ||
protected function _setPath ( | |||
$type | |||
$path | |||
) | |||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 30: | Line 30: | ||
|- | |- | ||
|} | |} | ||
=== | * '''Returns''' | ||
* '''Defined''' on line 626 of libraries/joomla/application/component/view.php | |||
===See also=== | |||
* {{JVer|11.1}} '''JView::_setPath source code''' on [[jplatform:application/component/view.php#cl-618|BitBucket]] | |||
* {{JVer|11.1}} Class [[API17:JView|JView]] | |||
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Application|Application]] | |||
* [[API17:JView::_setPath|Other versions of JView::_setPath]] | |||
===User contributed notes=== | |||
=== Code Examples === | |||
=== | |||
===Examples=== | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JView::_setPath | category=JView::_setPath | ||
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 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