[TYPO3-mvc] Current page URL?
Steffen Kamper
info at sk-typo3.de
Thu Jul 23 15:09:04 CEST 2009
Hi,
Andreas Weis schrieb:
> Hello,
>
> first of all thank you for your great great work!
>
> Just one question:
> I was wondering how to get the current page URL including all parameters?
>
> Whether I take the typolinkURI() function from the controllerContext or
> even directly the currentPageUrl() from the contentObject is always get
> just the pageURI without any paramateres
> i.e.
>
> index.php?id=3
>
> but not
>
> index.php?id=3&tx_myext_bla[controller]=hallo&no_cache=1&tx_otherextension_pi[lala]=haha
>
>
> so i don't have any chances to get own params to an existing url?
>
use
$this->request->hasArgument('key')
$this->request->getArgument('key')
for your namespacd vars
$this->request->getRequestURI() gives complete URL
vg Steffen
More information about the TYPO3-project-typo3v4mvc
mailing list