Hey,
Im trying to get the plugin parameters for a plugin like this:
$this->_params->get( 'THE_PARAMETER_I_WANT' )
but it obviously doesn't work. Can anyone help me out with this?
Thanks, Francis
Getting plugin parameters Topic is solved
Moderators: tjay, seadap, Rogue4ngel, matthewhayashida
Getting plugin parameters
Last edited by mtlnews on Sat Sep 15, 2007 9:42 pm, edited 1 time in total.
Re: Getting plugin parameters
Actually,
I tryed using this insted:
$this->params->get( 'THE_PARAMETER_I_WANT' )
and in the construct function, instead of writing:
function plg( &$subject )
{
parent::__construct( $subject );
// load plugin parameters
$this->_plugin = JPluginHelper::getPlugin( 'PLUGIN_GROUP', 'PLUGIN_NAME' );
$this->_params = new JParameter( $this->_plugin->params );
}
like the tutorial suggests, I wrote:
function plg( &$subject, $params ) {
parent::__construct( $subject, $params );
}
and now it works wonderfully
I tryed using this insted:
$this->params->get( 'THE_PARAMETER_I_WANT' )
and in the construct function, instead of writing:
function plg
{
parent::__construct( $subject );
// load plugin parameters
$this->_plugin = JPluginHelper::getPlugin( 'PLUGIN_GROUP', 'PLUGIN_NAME' );
$this->_params = new JParameter( $this->_plugin->params );
}
like the tutorial suggests, I wrote:
function plg
parent::__construct( $subject, $params );
}
and now it works wonderfully
- pe7er
- Joomla! Enthusiast
- Posts: 162
- Joined: Thu Aug 18, 2005 8:55 pm
- Location: Nijmegen, The Netherlands
- Contact:
Re: Getting plugin parameters
Great! Thanks for sharing!
PS: Could you please mark your first message in this thread as "solved" ? (Modify the first message and choose the Message Icon [solved]
).
This way the list of messages shows that the question has been solved, and other users can benefit from it.
Thanks!
PS: Could you please mark your first message in this thread as "solved" ? (Modify the first message and choose the Message Icon [solved]

This way the list of messages shows that the question has been solved, and other users can benefit from it.
Thanks!
Kind Regards,
Peter Martin (aka pe7er)
db8.nl - Joomla! implementation, programming, template and component development [Dutch]
>> Questions? Get help more easily with JTS-post Assistant: viewtopic.php?f=428&t=272481
Peter Martin (aka pe7er)
db8.nl - Joomla! implementation, programming, template and component development [Dutch]
>> Questions? Get help more easily with JTS-post Assistant: viewtopic.php?f=428&t=272481