[TYPO3-commerce] Strange code in pi1

Christian Kuhn lolli at schwarzbu.ch
Tue May 24 20:13:11 CEST 2011


Hey,

On 05/23/2011 06:28 PM, Michael Knabe wrote:
> Am 23.05.2011 16:59, schrieb Ingo Schmitt:
>> if you extend the frontend PI1 class by your extension you will have the prefixID tx_myextension. Since these PIvars are not present in Commerce, this remapps the pivars to the commerce vars.
>> I have implemented this solution, since the access to the pivars is not implemented at only one place.
> I suggest that if you extend a pi-class in your extension you should not
> change the prefixId. IIRC pi_base uses the prefixId to fill the piVars.
> If that is true and the extension doesn't overwrite $this->prefixId one
> should be able to use the commerce-piVars without this piece of code. Am
> I right?

I think so, too.


> As Christian is just working on the other pi's I'm going to talk to him
> directly to find a solution we could use in all pi's.

Afaik, if we manage to finish the switch to fluid at some point, this 
handling will be either useless (because all links are generated and 
prefixed in fluid), or we could introduce some generic prefix method 
that can be given to fluid.


Regards
Christian


More information about the TYPO3-project-commerce mailing list