Skip to content

Instantly share code, notes, and snippets.

@foertel
Created June 8, 2011 13:45
Show Gist options
  • Save foertel/1014442 to your computer and use it in GitHub Desktop.
Save foertel/1014442 to your computer and use it in GitHub Desktop.
Turning Controller Method Argument Mapping into 404
<?php
/**
* @return void
*/
public function mapRequestArgumentsToControllerArguments() {
try {
parent::mapRequestArgumentsToControllerArguments();
} catch (Tx_Extbase_MVC_Exception_InvalidArgumentValue $exception) {
$GLOBALS['TSFE']->pageNotFoundAndExit();
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment