Archive for December 22nd, 2011

If you get this error:
1Warning: Warning (2): preg_match() [<a href=’function.preg-match’>function.preg-match</a>]: Delimiter must not be alphanumeric or backslash in [/var/www/vhosts/h2oservices.com/httpdocs/cake/libs/model/model.php, line 2611]
When trying to use a custom validation rule, make sure the method visibility is set to public.
So this should work:
123public function myCustomValidateRule(){
    // Custom validation code
}
It seems protected visibility works on some versions of [...]


top