JController::addViewPath: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 4: | Line 4: | ||
Add one or more view paths to the controller's stack, in LIFO order. | Add one or more view paths to the controller's stack, in LIFO order. | ||
<source lang="php"> | <source lang="php"> | ||
| Line 29: | Line 29: | ||
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Application|Application]] | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Application|Application]] | ||
* [[API17:JController::addViewPath|Other versions of JController::addViewPath]] | * [[API17:JController::addViewPath|Other versions of JController::addViewPath]] | ||
===User contributed notes=== | ===User contributed notes=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JController::addViewPath | category=JController::addViewPath | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Latest revision as of 02:30, 25 March 2017
JController::addViewPath
Description
Add one or more view paths to the controller's stack, in LIFO order.
public function addViewPath ($path)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $path | array | The directory (string) or list of directories (array) to add. |
- Returns This object to support chaining.
- Defined on line 413 of libraries/joomla/application/component/controller.php
See also
JController::addViewPath source code on BitBucket
Class JController
Subpackage Application- Other versions of JController::addViewPath
User contributed notes
Code Examples