Table of Contents

addTablePath

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Application Class JModel Method addTablePath Reference 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.

Syntax

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.

Examples

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.