$this->setValidator('website', new sfValidatorAnd(array(
$this->validatorSchema['website'],
new sfValidatorUrl(array(), array(
'invalid' => 'This is not website',
)),
)));
this validate http://google.com, but google.com no. How can i this edit for validate without http:// ?
I am afraid you will need to create your own custom validator:
Here
((%s)://)?mean that now protocol is optional.See sfValidatorUrl for an original pattern (REGEX_URL_FORMAT const).