Keyword

Access plugin params within a template

  • Steve Tustin
  • Steve Tustin's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 6 months ago #63547 by Steve Tustin
Access plugin params within a template was created by Steve Tustin
Hi,

I've got a plugin (swmap) which returns a list of parameters:
Log in  or Create an account to join the conversation.

More
12 years 6 months ago #63548 by Jason
Replied by Jason on topic Re: Access plugin params within a template
"Members declared protected can be accessed only within the class itself and by inherited and parent classes. Members declared as private may only be accessed by the class that defines the member. " (php.net/manual/en/language.oop5.visibility.php)

You may need an additional function in your class that takes all this protected information and stores it in another publicly usable object/array - then the following would work...
echo $pluginParams->data->icon;

Please Log in or Create an account to join the conversation.