Search code examples
phpjoomla

How to you get hold of the user defined $tmp_path folder in Joomla


I want to create some files in my component and then delete them. How to I got hold of the $tmp_path variable that was set by the user in the configuration.php file?


Solution

  • $config =& JFactory::getConfig();

    $tmp_path = $config->getValue('config.tmp_path');

    The API documentation for Joomla! is pretty helpful: JFactory::getConfig