[TYPO3-UG India] get arguments from url in typo3
aaska patel
aaskapatel at ymail.com
Mon Feb 24 12:02:47 CET 2014
hello sir ,
i am working in typo3 .....
how can i get arguments from URL
i passed arguments in url like this ,
as a template in resources folder , file name : list.html
<f:form action="update" object="{hotel}" arguments="{myArgument: aaska}" name="hotel">
and in controller in updateAction() , i want to fetch that agruments , so i write like this ,
$this->view->assign('hotel', array('test' => 'hello' . isset($this->arguments['myArgument']) .'@@' . $this->getParametersSafely('myArgument')));
and i make the function in controller...
public function getParametersSafely ($parameterName) {
if ($this-> request-> hasArgument ($parameterName)) {
return $this-> request->getArgument($parameterName);
}
}
so please help me... this is not working
More information about the TYPO3-UG-India
mailing list