[TYPO3-mvc] fluid array with a value of type boolean
dennis ahrens
dennis.ahrens at googlemail.com
Mon May 3 17:18:16 CEST 2010
Hi Christine,
i'd like to use strict type recognition.
ATM i've work around by handing over 0/1 instead of TRUE/FALSE.
regards
Dennis
2010/4/30 Christine Gerpheide <cgerpheide at gmail.com>:
> Hm. In our template we have:
>
> <f:link.action action="select" arguments="{reedit : 1}">
>
> And the controller receives it like this:
>
> /**
> * @param string $reedit
> ...
> **/
> public function selectAction($reedit = false) {...}
>
> I'm not sure if the reason we added the param value to be type string was
> because it didn't work as boolean, though, or if we just did it
> accidentally. But this works for us to pass booleans. Are you getting
> errors, or you need strict type comparisons to work (most likely ours is
> received as a string...)?
>
> Christine
>
> 2010/4/30 dennis ahrens <dennis.ahrens at googlemail.com>
>
>> Hi list,
>>
>> i've tried to render a action-link with fluid that should hand a
>> argument of type boolean to the action.
>>
>> the code looks like this:
>>
>> <f:link.action action="import" controller="DocumentTemplate"
>> arguments="{create: true}">
>> create
>> </f:link.action>
>>
>> I've also tried
>>
>> arguments="{create: 1}
>>
>> and
>>
>> // controller
>> $this->view->assign('true',TRUE);
>> // template
>> arguments="{create: true}
>>
>> The manual does not mention boolean values for arrays:
>>
>>
>> http://flow3.typo3.org/documentation/manuals/fluid/fluid.usermanual/#id37692524
>>
>> Any workarounds/ideas?
>>
>> regards
>> Dennis
>> _______________________________________________
>> TYPO3-project-typo3v4mvc mailing list
>> TYPO3-project-typo3v4mvc at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>>
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>
More information about the TYPO3-project-typo3v4mvc
mailing list