references:joomla.framework:application:japplication-getbasepathTable of Contents
getBasePath
Returns the base path of the current application. The method is deprecated and provided for backwards compatibility with Joomla! 1.0. It is scheduled to be removed in future versions. Use JURI::base instead. Syntaxstring getBasePath ( $client, $addTrailingSlash )
ExamplesThe following examples are pure academic because both parameters are ignored as of Joomla! 1.5 and always return the base path of the active application including the trailing slash. Example: JSite global $mainframe; echo $mainframe->getBasePath( 0, true ) might display the following: Result http://www.example.com/joomla15/
Example: JAdministrator global $mainframe; echo $mainframe->getBasePath( 1, true ) might display the following: Result http://www.example.com/joomla15/administrator/
Example: JInstaller global $mainframe; echo $mainframe->getBasePath( 2, true ) might display the following: Result http://www.example.com/joomla15/installation/
|


