Skip to content

Instantly share code, notes, and snippets.

@nnarhinen
Created August 24, 2010 10:00
Show Gist options
  • Save nnarhinen/547299 to your computer and use it in GitHub Desktop.
Save nnarhinen/547299 to your computer and use it in GitHub Desktop.
<validator name="atleastonerecipient" class="arraylength">
<arguments>
<argument>to</argument>
</arguments>
<ae:parameters>
<ae:parameter name="min">1</ae:parameter>
</ae:parameters>
<errors>
<error>Valitse vähintään yksi sähköpostiosoite</error>
</errors>
</validator>
<validator name="validemail" class="email" required="false">
<arguments base="to[]">
<argument />
</arguments>
<errors>
<error>Virheellinen sähköposti</error>
</errors>
</validator>
<input type="text" name="to[]" size="40" />
<?php foreach($t['persons'] as $person):?>
<label>
<input type="checkbox" name="to[]" class="radio" value="<?php echo $person['Email'];?>" />
<?php echoHtml($person['Name']);?>
</label>
<?php endforeach;?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment