How can I pass a value from component or set the certain value on a certain page that it then could be use in the plugin or module of joomla?
For example, in this view: index.php?option=com_mycom&view=myview
will set $a = 1
(it could be generated from database).
Every time people come to this address there will be a variable $a = 1
that I could use it in my plugin.
I know some people suggest using session but it is not a good way for me to solve this problem.