It is necessary to check the variable is it a string without spaces. I read this here http://framework.zend.com/manual/2.2/en/modules/zend.validator.set.html#alpha it says that you need to use the class Zend \ Validator \ Alpha, as it turns out it is not in the given path. Found the class Zend\I18n\Validator\Alpha

 valid = new \Zend\I18n\Validator\Alpha(); valid->isValid('ok'); 

Causes the exception Zend \ I18n \ Filter component requires the intl PHP extension

  • 2
    short path: sudo aptitude install php5-intl long path: familiarize yourself with a PCRE hack that does not catch tabs and other murk: if (strpos ($ str, '')! == false) {/ * valid * /} else {/ * invalid * /} - etki
  • Thank you, everything turned out) - wss-world

1 answer 1

  1. Open the php.ini file and uncomment the line extension = php_intl.dll

  2. Restart the web server.

  • I will use it when I upload to the hosting. - wss-world