First call of nullSnippet cached: [[nullSnippet?test=`[[!getUrlParam? &name=`test`]]`]] Second call uncached: [[!nullSnippet?test=`[[!getUrlParam? &name=`test`]]`]]
<?php echo "nullsnippet: $test<br>"; //ok show the correct value $aString = 'aString:'.$test; echo "nullsnippet: $aString <br>"; //ok show the correct value $test= (int) $test; //cast the value in a integer... echo "nullsnippet: $test<br>"; //KO if the snippet is cached/ OK if uncached!?
First call of nullSnippet cached: nullsnippet: 10 nullsnippet: aString:10 nullsnippet: 0 !!!! What's this!? Second call uncached: nullsnippet: 10 nullsnippet: aString:10 nullsnippet: 10
This question has been answered by multiple community members. See the first response.
[[nullSnippet?test=`[[!getUrlParam? &name=`test`]]`]]
echo "nullsnippet: $test<br>"; //ok show the correct value
nullsnippet: [[!getUrlParam? &name=`test`]]<br>
$test= (int) $test; //cast the value in a integer...
[[!getUrlParam? &name=`test`]]