JModel/addTablePath: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 4: | Line 4: | ||
===Syntax=== | ===Syntax=== | ||
| Line 38: | Line 38: | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=addTablePath | category=addTablePath | ||
category=JModel | category=JModel | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
Latest revision as of 01:54, 25 March 2017
Description
Adds to the stack of model table paths in LIFO order.
Syntax
static addTablePath($path)
| Parameter Name | Default Value | Description |
|---|---|---|
| $path | The directory (-ies) to add. |
Returns
void
Defined in
libraries/joomla/application/component/model.php
Importing
jimport( 'joomla.application.component.model' );
Source Body
public static function addTablePath($path)
{
jimport('joomla.database.table');
JTable::addIncludePath($path);
}
Examples
Code Examples