How to set plugin params programatically? (Joomla 1.7)

1.3k views Asked by At

Is there any way to set a plugin parameter programatically from within a plugin?

I've tried:

$this->params->set('param_name', 'value');

This doesn't work, although many forums suggests it should.

1

There are 1 answers

0
WooDzu On

After the parameter is set you need to parse all parameters into string value and store in jos_extensions table.

Don't try to use $params->toString(); as this is JParameters object. You need to go through it manually.