$table = JTable::getInstance('mytable'); $table->addIncludePath('/path/to/my/library');
$table = JTable::getInstance('mytable'); $table->addIncludePath(JPATH_COMPONENT . '/models/fields');In this example, we instantiate a new JTable object for a table called "mytable". We then add the path "/models/fields" within our Joomla component to the include paths for the JTable class. The JTable addIncludePath method is a part of the Joomla Platform library.