references:joomla.framework:table:jtable-addincludepathTable of Contents
addIncludePath
Add a directory where JTable should search for table types. You may either pass a string or an array of directories. This is a static method and thus JTable does not need to be instantiated to use it. These paths are used by the JTable::getInstance method to load table class definition files. This method returns the array of paths that have been added, thus this method is used not only to add paths but also to retrieve the list of paths that have been added. Syntaxarray addIncludePath ( $path )
ExamplesExample print_r( JTable::addIncludePath( '/var/www/trunk' ) );
might produce Result Array ( [0] => /var/www/trunk/libraries/joomla/database/table [1] => /var/www/trunk ) Discussion |


