Hi everybody, when I execute the following code :
use Phalcon\Validation\Validator\PresenceOf;
class AuthorController extends \Phalcon\Mvc\Controller
{
public function getAction() {
$params = array();
$validation = new Phalcon\Validation();
$validation->add('id', new PresenceOf(array(
'message' => _("No author id given")
)));
$messages = $validation->validate($params);
}
}
I've got the following fatal error : Fatal error: Maximum recursion depth exceeded in ..../AuthorController.php on line 18
That seems pretty strange to me as the example is very simple. Does anyone have an explanation ?