How to get parameters from component

For Joomla! 3.x Coding related discussions, please use: http://groups.google.com/group/joomla-dev-general

Moderator: ooffick

Forum rules
Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.
Post Reply
quarkbit_pl
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Mon Jul 21, 2008 1:37 pm
Location: Lubliniec
Contact:

How to get parameters from component

Post by quarkbit_pl » Wed May 08, 2019 4:54 pm

how to get the parameters of a given component "A" and display them in the frontend view of another component "B"?
Free Joomla, VirtueMart and sh404SEF extensions: http://webwizard.pl/en/

User avatar
Pnkr
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 109
Joined: Thu Sep 01, 2011 7:26 am
Location: Athens, Greece

Re: How to get parameters from component

Post by Pnkr » Thu May 09, 2019 8:16 am

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.

SharkyKZ
Joomla! Ace
Joomla! Ace
Posts: 1606
Joined: Fri Jul 05, 2013 10:35 am
Location: Unknown

Re: How to get parameters from component

Post by SharkyKZ » Thu May 09, 2019 8:33 am

Assuming you mean configuration parameters:

Code: Select all


use Joomla\CMS\Component\ComponentHelper;

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


Post Reply

Return to “Joomla! 3.x Coding”