A
A
Alex Braun2022-03-22 09:23:31
Joomla
Alex Braun, 2022-03-22 09:23:31

How to display a plugin in a plugin in Joomla 3?

How to display a plugin in a plugin in Joomla 3? More precisely, not even the plugin itself, but the result of its work. Both plugins content.

In the content, I output it like this from the plugin:

$usd = $this->item->daily_json->Valute->USD->Value;
$eur = $this->item->daily_json->Valute->EUR->Value;

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergei Tolkachev, 2022-04-20
@sergeytolkachyov

It is necessary to call the necessary event in the plugin code and pass the necessary data to it.

Factory::getApplication()->triggerEvent('event_name', ['option1'=>'option_value', 'option2'=>'option_value']);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question