Re: how to validate the empty fileds in cakephp

2008-11-13 Thread sun
Thanks for ur suggestions sundar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to

Re: how to validate the empty fileds in cakephp

2008-11-12 Thread David C. Zentgraf
the missing all fields will shown error message..but no one displayed. I don't understand, can you express that differently? On 12 Nov 2008, at 16:24, sun wrote: Thanks for consider my request. I am asking abt how to validate the empty form fields and upload file filed. ? consider

Re: how to validate the empty fileds in cakephp

2008-11-12 Thread sun
Thanks for consider my request. I am asking abt how to validate the empty form fields and upload file filed. ? consider three text fields and one upload file field if i submit the submit button directly, with out any values entered, the missing all fields will shown error message..but no

Re: how to validate the empty fileds in cakephp

2008-11-12 Thread sun
hello David can u give some related ideas how to solve that problem any other validation function will be add in controller section? by sundar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group.

Re: how to validate the empty fileds in cakephp

2008-11-12 Thread sun
sorry I hope u understand my problem .already i have sent my test model to u. u know my form fields If submit the submit button the empty fields will shown error message, but not shown in my program so i am asking that only how to solve it? with regards sundar

Re: how to validate the empty fileds in cakephp

2008-11-12 Thread [EMAIL PROTECTED]
Do I understand you correctly: You have set validation rules in the model. You have a form in your view but your view does not show the errors for each field in your form. First, add some error texts to your model. For example: 'mark1'=array( 'rule'=VALID_NOT_EMPTY, 'message'='Field

how to validate the empty fileds in cakephp

2008-11-11 Thread sun
How to validate the empty fileds in cakephp ? when i dont give any values to any fields in the form If I click the submit button.. error message will be displayed under the missing all fields.. Tell some idea to do that by sun --~--~-~--~~~---~--~~ You

Re: how to validate the empty fileds in cakephp

2008-11-11 Thread David C. Zentgraf
I don't understand what exactly you mean, but you may wanna look into allowEmpty or notEmpty: http://book.cakephp.org/view/130/allowEmpty http://book.cakephp.org/view/740/notEmpty On 12 Nov 2008, at 14:58, sun wrote: How to validate the empty fileds in cakephp ? when i dont give any values

Re: how to validate the empty fileds in cakephp

2008-11-11 Thread thatsgreat2345
Yes allowEmpty or notEmpty as well as you can set minLength or a between validation. On Nov 11, 10:17 pm, David C. Zentgraf [EMAIL PROTECTED] wrote: I don't understand what exactly you mean, but you may wanna look into   allowEmpty or

Re: how to validate the empty fileds in cakephp

2008-11-11 Thread David C. Zentgraf
Hi Sun, Please send your replies to the list. I think you need to read through the book again to understand how to properly use validation rules. http://book.cakephp.org/view/127/One-Rule-Per-Field Chrs, Dav On 12 Nov 2008, at 16:42, sun wrote: Thanks for consider my request, I am