php - Zend 2 annotations and file validators -


is possible use file validation classes form annotations?

/**  * @form\name("profile_avatar")  * @form\type("zend\form\element\file")  * @form\options({"label":"your avatar"})  * @form\validator({"name":"zend\validator\file\isimage"})  */ public $profile_avatar; 

with code above form valid if send non-image file.

i think have use "isimage" name... had similar problem hostname valuidator. didn't solved because can't options working...


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -