Last active
December 29, 2023 13:41
-
-
Save ribafs/68d760e745d6c71521c0cf93be1499a2 to your computer and use it in GitHub Desktop.
Revisions
-
ribafs revised this gist
Dec 29, 2023 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -43,6 +43,8 @@ error_reporting(E_ALL); $param=JComponentHelper::getParams('com_teste')->get('testepar'); print "OK?"; print $param; ?> -
ribafs revised this gist
Dec 29, 2023 . 1 changed file with 5 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -36,6 +36,11 @@ My PHP defined('_JEXEC') or die('Restricted access'); ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); $param=JComponentHelper::getParams('com_teste')->get('testepar'); print $param; -
ribafs created this gist
Dec 29, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,46 @@ My XML <?xml version="1.0" encoding="UTF-8"?> <extension type="component" version="3.0" method="upgrade"> <name>testepar</name> <creationDate>Outubro 2023</creationDate> <author>Ribamar FS</author> <authorEmail>[email protected]</authorEmail> <authorUrl>https://ribamar.net.br</authorUrl> <copyright>Copyright (C) 2016 Ribamar FS. All rights reserved.</copyright> <license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license> <version>2.0</version> <description>Componente de teste de envio de parametro Joomla</description> <administration> <menu>COM_TESTEPAR</menu> <files folder="admin"> <filename>testepar.php</filename> </files> <config> <fields name="params"> <fieldset name="backup"> <field name="testepar" default="none" /> </fieldset> </fields> </config> </administration> </extension> My PHP <?php /** * @author-name Ribamar FS */ defined('_JEXEC') or die('Restricted access'); $param=JComponentHelper::getParams('com_teste')->get('testepar'); print $param; ?> Result blank page