Support Joomla!

references:joomla.framework:application:japplication-getpath

Table of Contents

getPath

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Application Class JApplication Method getPath Reference getPath() Never Work in Progress

Retrieves the path to the specified file. This method is deprecated in Joomla! 1.5 (JApplicationHelper::getPath should be used instead). See the JApplicationHelper::getPath for a detailed description of this method.

Syntax

void getPath ( $varname, $user_option )

$varname string is a string containing the name of the variable to retrieve.
$user_option string is a string containing the user option. This parameter is optional and if omitted defaults to null.

Examples

Example

global $mainframe;

echo $mainframe->getPath( 'admin', 'com_contact' );

might produce

Result

C:\Program Files\xampp\htdocs\joomla11\administrator\components\com_contact\admin.contact.php

 
references/joomla.framework/application/japplication-getpath.txt (839 views) · Last modified: 2007/08/15 14:49