i added another validate option to the scripts/bake.php  script:
line 421:
$prompt .= "6- VALID_TELEPHONE\n";
line 443:
case '6':
                                                $validate[$field['name']] = 
'VALID_TELEPHONE';
                                                break;


and in
app/app_model.php:

define('VALID_TELEPHONE', '/^[\(\+0][\/\(\)0-9 \-]+$/');

if you have more ideas for more validate options post them here


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Cake PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to