[TYPO3-project-formidable] renderlet:DATE

Christian Tauscher cms at media-distillery.de
Wed Apr 16 19:02:20 CEST 2008


It is strange....

Try-fail-try-get mad-write a message-find the solution in the docs...

If you are stuck at the same point, here is it:

<validators>
<validator:STANDARD>
<userobj message="You must be 16 or older">
<php><![CDATA[
	$aData = $this->getUserObjParams();
	if(!empty($aData["value"]))
		{
		if( $aData["value"] > (mktime()-(16 *365*24*60*60)))
			return FALSE;
		}
	return TRUE;
	]]>
</php>
</userobj>
</validator:STANDARD>
</validators>


Christian.


More information about the TYPO3-project-formidable mailing list