API16

JController/addViewPath

From Joomla! Documentation

< API16:JController
Revision as of 17:35, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Add one or more view paths to the controller's stack, in LIFO order. <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>[[Description:JController/ad...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.

[Edit Descripton]

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 />