Hi Jessica
Are you failing the validation? this is set in the model. See here for setting up model validation
http://book.cakephp.org/2.0/en/models/data-validation.html
I hoe this helps.
On Monday, June 30, 2014 10:30:23 PM UTC+1, Jessica wrote:
-- Are you failing the validation? this is set in the model. See here for setting up model validation
http://book.cakephp.org/2.0/en/models/data-validation.html
I hoe this helps.
On Monday, June 30, 2014 10:30:23 PM UTC+1, Jessica wrote:
Hi,Please bear with me! Total newbie in the CakePHP world.I need to be able to provide the option to add an international phone number on my customers registration form page.Currently, only a US 10 digit phone number is being allowed to be entered. I really need to be able to provide the capability of entering in either styles, US orinternational numbers.Here's a snippet from the ctp file that I thought has to do with phone number section, but I do not see where I change anything to make a difference.<tr style="height:30px;"><td align="left"> Phone Number <span class="starr">*</span> </td><td align="left" class="tdwidth"> <?php echo $form->input('Member.phone',array('label'=>'','div' => '','class'=>'phone required','id'=>'phone')); ?> </td> </tr><tr style="height:30px;">Then here is a snippet from the ctp file that information is displayed on. Though I am not sure if this is relevant?<div class="propertyviewinpt"><div class="propertyviewContainerLeft" > Phone <span class="starr"> * </span> </div> <div class="propertyviewContainerRight"> <?php echo $form->input('phone',array('label'=>'','div'=>'', 'class'=>'required phone', 'size' => '20')); ?> </div>Should I be looking for another ctp file that has solely form information on it or can I change the code provided above to include international numbers?Thanks!
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment