Skip to content

Instantly share code, notes, and snippets.

@ribafs
Last active December 29, 2023 13:41
Show Gist options
  • Select an option

  • Save ribafs/68d760e745d6c71521c0cf93be1499a2 to your computer and use it in GitHub Desktop.

Select an option

Save ribafs/68d760e745d6c71521c0cf93be1499a2 to your computer and use it in GitHub Desktop.

Revisions

  1. ribafs revised this gist Dec 29, 2023. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions gistfile1.txt
    Original 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;

    ?>
  2. ribafs revised this gist Dec 29, 2023. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions gistfile1.txt
    Original 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;
  3. ribafs created this gist Dec 29, 2023.
    46 changes: 46 additions & 0 deletions gistfile1.txt
    Original 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