[Typo3] Getting piVars from a different plugin
Steven Bagshaw
steven.bagshaw at unv.org
Mon Jun 20 15:59:37 CEST 2005
Thanks Bernhard. I had thought of doing that, but was worried about
side-effects. But when I look into the Typo3 source, it doesn't look so
scary.
The approach works to pass the variables around. I will start modifying my
plugins to have the same prefix and will report here if any errors or
problems occur.
Thanks for your help.
Steven
"Kraft Bernhard" <kraftb at gmx.net> wrote in message
news:mailman.1.1119272892.15317.typo3-english at lists.netfielders.de...
> Steven Bagshaw wrote:
>
> > $clValue = $HTTP_GET_VARS["CL"];
>
> 1. WHEN(!) you directly retrieve POST/GET values always do that by:
>
> $clValue = t3lib_div::_GP('CL');
>
> > ["CL"];
>
> 2. Use single quotes ' instead of double quotes " ... they are faster.
>
>
> > Is there a way for me to get this value, regardless of which plugin
> > variables it's stored in? Or do I need to write my own function to look
> > through the HTTP GET variables to find it myself?
>
> I once needed that for a plugin of mine where also comunicated differnt
_piN
> plugins communicated with each other (altough always in one direction).
>
> When I coded it I simply changed the "$this->prefixId" from "tx_myext_piN"
> to "tx_myext" in each extension .... after that they share the piVars ...
>
> but don't know if this affects other things and how caching is affected
...
> give it a try and report back if it works as expected ...
>
>
> greets,
> Bernhard
> --
> Kraft Bernhard
> MOKKA Medienagentur <http://www.mokka.at>
> T: +43 - 1 - 895 33 33 - 50
More information about the TYPO3-english
mailing list