I want to be able to use php to set values in the Joomla 3.x configuration.php file.
I can get values easily enough with something like:
$config = new JConfig();
$dbprefix = $config->dbprefix;
I've searched but can't find any way of setting the value. I assume it's possible since joomla does it. I can read the whole file in and use php to search and replace but I'm hoping that Joomla has an API with a setter or similar to allow me to do it.
I've searched and searched but there is nothing that I can find
Help!
ta
I have also now tried adding a setter to the JConfig but that didn't seem to work!
public function setTestvar($testvar) {
$this->ftp_user = $testvar;
}