| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Application |
JModel |
addTablePath |
addTablePath() |
Never | Work in Progress |
Adds to the stack of model table paths in LIFO order.
This method is a wrapper for the JTable::addIncludePath() method.
void addTablePath ( $path )
| $path | mixed | is either a string containing the path that should be added to the search path list or an array of strings containing paths to search. This parameter is optional and if omitted defaults to null. |
Example
JModel::addTablePath( JPATH_COMPONENT.DS.'othertables' );
Will result in the specified directory being added to the list of directories which are searched for JTable class definitions.