JController/addViewPath
From Joomla! Documentation
< API16:JController
The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
Description[edit]
Add one or more view paths to the controller's stack, in LIFO order.
Template:Description:JController/addViewPath
Syntax[edit]
addViewPath($path)
Parameter Name | Default Value | Description |
---|---|---|
$path | The directory (string), or list of directories (array) to add. |
Returns[edit]
void
Defined in[edit]
libraries/joomla/application/component/controller.php
Importing[edit]
jimport( 'joomla.application.component.controller' );
Source Body[edit]
function addViewPath($path)
{
$this->_addPath('view', $path);
}
[Edit See Also] Template:SeeAlso:JController/addViewPath
Examples[edit]
<CodeExamplesForm />