Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- W classes/Customer.php
- 'lastname' => array('type' => self::TYPE_STRING, 'validate' => 'isCustomerName', 'required' => true, 'size' => 32),
- 'firstname' => array('type' => self::TYPE_STRING, 'validate' => 'isCustomerName', 'required' => true, 'size' => 32),
- ost' => false),
- W override/classes utworzyłem plik o nazwie Validate.php
- <?php
- class Validate extends ValidateCore
- {
- public static function isCustomerName($name)
- {
- if (preg_match(Tools::cleanNonUnicodeSupport('/www|http/ui'), $name)) {
- return false;
- }
- return preg_match(Tools::cleanNonUnicodeSupport('/^[^0-9!\[\]<>,;?=+()@#"°{}_$%:\/\\\*\^]*$/u'), $name);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement