问题描述
我已经创建了一个userFunc来在自己的扩展名中添加漂亮的网址.
I have made an userFunc to make nice urls in my own extension.
如何解码网址,以便TYPO3显示正确的产品?
How do I decode the urls so that TYPO3 will show the right product?
我认为产品的uid会在某个地方,以便我可以使用它.
I think that the uid of the product will be somewhere so that I can use it.
我说得对吗?
推荐答案
如果我没记错的话,您无需解码任何内容. RealURL将$_GET
变量重新设置为不使用RealURL时的变量.因此,如果您的网址包含...
If I remember correctly, you don't have to decode anything. RealURL sets the $_GET
variables back to what they would be if RealURL wasn't used. So if your URL contains...
&tx_origkentaurproducts_kentaurproductsfe[action]=show
...而RealURL会将其转换为......
...and RealURL transforms it for example to...
/action/show
...然后在显示此类URL时,您仍应在...中使用数据.
...then when such URL is being displayed, you should still have your data available in...
$_GET['tx_origkentaurproducts_kentaurproductsfe']['action']
这篇关于TYPO3解码userfunc中的realurl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!