[TYPO3-mvc] Check the request
Dustin Kinney
dustin at kinney.ws
Tue Oct 26 10:43:17 CEST 2010
Hello Dawid,
try this:
$request = $this->request->getArguments();
if(isset($request['argument_name'])) {
}
Dustin Kinney
Am 26.10.10 10:34, schrieb Dawid Pacholczyk:
> I want to get an argument for my uri so I use
> $this->request->getArgument('argument_name');
>
> But when it isn`t set I receive error. Cool. Nothing wrong with that. But is
> there some method tha I can use to check first if the argument exists ?
> Cause I have same view with 2 states on one page and they depend on the
> argument value so I need to check it on start but I can`t cause when it`s
> not set I receive an error :(
>
> Best regards,
> Dawid Pacholczyk
>
More information about the TYPO3-project-typo3v4mvc
mailing list