API15

JView/addTemplatePath: Difference between revisions

From Joomla! Documentation

m removing red link to edit, no existant pages
m preparing for archive only
 
Line 44: Line 44:


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=addTemplatePath
  category=addTemplatePath
  category=JView
  category=JView
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*

Latest revision as of 01:16, 25 March 2017

Description

Adds to the stack of view script paths in LIFO order.

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

Syntax

addTemplatePath($path)
Parameter Name Default Value Description
$path The directory (-ies) to add.

Returns

void

Defined in

libraries/joomla/application/component/view.php

Importing

jimport( 'joomla.application.component.view' );

Source Body

function addTemplatePath($path)
{
        $this->_addPath('template', $path);
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

Code Examples