Re: How can I leave entered value even there is an errro and couldn't complete

2009-08-12 Thread Laeffe
On Aug 11, 11:06 am, leafchild wrote: > How can I get "$this->data" has "recursive = 6" data to avoid getting > "undefined index" error? I believe i had the same problem as you. Or in my case it was an overbelief in cakephp :P What you need to do is to ether re-read the original-data and then m

Re: How can I leave entered value even there is an errro and couldn't complete

2009-08-11 Thread brian
I don't even know if you *can* set recursive to 6. Use Containable and specify exactly which associations you want. On Tue, Aug 11, 2009 at 1:44 PM, leafchild book wrote: > Hi anurag, > You are saying I have to get POST data manually instead of using validation > ($this->Customer->validates())? >

Re: How can I leave entered value even there is an errro and couldn't complete

2009-08-11 Thread leafchild book
Hi anurag, You are saying I have to get POST data manually instead of using validation ($this->Customer->validates())? If I set id, then all the new information is replace back with old information when coming back page with errors. Hi brian, I didn't use Containable, only I do is when I get data

Re: How can I leave entered value even there is an errro and couldn't complete

2009-08-11 Thread brian
I can't follow all of that but it seems like you'd be better off using Containable. On Tue, Aug 11, 2009 at 5:06 AM, leafchild wrote: > > Yes, I use $form->input() > > I found an issue because I was SQL again for the specific data before > going back to the page to show user an errors. > (I had a

Re: How can I leave entered value even there is an errro and couldn't complete

2009-08-11 Thread anurag pal
Hi, Just set the Id so that it will get the reference on edit page. Regards, Anurag Pal On Tue, Aug 11, 2009 at 2:36 PM, leafchild wrote: > > Yes, I use $form->input() > > I found an issue because I was SQL again for the specific data before > going back to the page to show user an errors. > (

Re: How can I leave entered value even there is an errro and couldn't complete

2009-08-11 Thread anurag pal
Hi, For that you have to pass values in input filed so that it will take it when it come back to page after getting validation errors. Regards, Anurag Pal On Aug 8, 3:56 am, leafchild wrote: > I have a page with form. > > If user entered name, address,,,and ,all kinds of information and > subm

Re: How can I leave entered value even there is an errro and couldn't complete

2009-08-11 Thread leafchild
Yes, I use $form->input() I found an issue because I was SQL again for the specific data before going back to the page to show user an errors. (I had an code like this that's why I couldn't keep the entered value when there is an error. === function adm

Re: How can I leave entered value even there is an errro and couldn't complete

2009-08-07 Thread brian
Are you using FormHelper to create your form elements? If you do, for example: echo $form->input('Post') ... the helper will add the value of the element based upon $this->data. If you are using the helper, maybe you should post your controller and view code. On Fri, Aug 7, 2009 at 6:56 PM, le

How can I leave entered value even there is an errro and couldn't complete

2009-08-07 Thread leafchild
I have a page with form. If user entered name, address,,,and ,all kinds of information and submit but there is mistakes such as not entered email properly and came back to form page with error message. How can I keep the entered value user entered properly. Currently in my form page, if user has