<?php $form->addEmail('iEmail') ->addRule(function($control) { return $this->user->checkEmail($control->value) });