references:joomla.framework:application:jmodel-addincludepathTable of Contents
addIncludePath
Add a directory where JModel should search for models. This is a static method and will return the updated array of include paths. Syntaxarray addIncludePath ( $path )
ExamplesExample jimport( 'joomla.application.component.model' ); print_r( JModel::addIncludePath() ); print_r( JModel::addIncludePath( JPATH_COMPONENT.DS.'models' ) ); might produce Result Array ( ) Array ( [0] => /var/www/joomla15/components/com_example/models ) |


