Page 1 of 1

How to get parameters from component

Posted: Wed May 08, 2019 4:54 pm
by quarkbit_pl
how to get the parameters of a given component "A" and display them in the frontend view of another component "B"?

Re: How to get parameters from component

Posted: Thu May 09, 2019 8:16 am
by Pnkr
you should connect to the database tables of the component A and do whatever you want with them in the component B.

change them, show them, delete them... whatever.

Re: How to get parameters from component

Posted: Thu May 09, 2019 8:33 am
by SharkyKZ
Assuming you mean configuration parameters:

Code: Select all


use Joomla\CMS\Component\ComponentHelper;

$exampleParams = ComponentHelper::getParams('com_example');