php - load params from database in joomla 2.5 -
data params not load database, i've tried several different structures module without success.
my following mod_xml
#<?xml version="1.0" encoding="utf-8"?> <extension type="module" version="2.5" client="site" method="upgrade"> <name>mod_bruno</name> <author>joomla! project</author> <creationdate>july 2004</creationdate> <copyright>copyright (c) 2005 - 2013 open source matters. rights reserved. </copyright> <license>gnu general public license version 2 or later; see license.txt</license> <authoremail>admin@joomla.org</authoremail> <authorurl>www.joomla.org</authorurl> <version>2.5.0</version> <description>mod bruno</description> <files> <filename>mod_bruno.xml</filename> <filename>mod_bruno.php</filename> </files> <config> <fields name="params"> <fieldset name="basic"> <field name="bruno" type="text" /> </fieldset> </fields> </config> </extension>
# my follows mod_php
#<?php // no direct access defined('_jexec') or die; echo $params->get('bruno'); print_r($params); die; require( jmodulehelper::getlayoutpath( 'mod_bruno' ) );
# always result of print_r in params following
jregistry object ( [data:protected] => stdclass object ( ) )
and confirmed params updated in db visualized {"bruno":"teste"}
the value in database, not display on screen
obrigado