4.1.4.26 url
This rule checks for valid URL formats. Supports http(s), ftp(s), file, news, and gopher protocols.
var $validate = array(
'website' => array(
'rule' => 'url'
)
);
var $validate = array('website' => array('rule' => 'url'));
To ensure that a protocol is in the url, strict mode can be enabled like so.
var $validate = array(
'website' => array(
'rule' => array('url', true)
)
);
var $validate = array('website' => array('rule' => array('url', true)));


























