Re: Help - Error validation wipes out database/record id during "edit"

2008-05-05 Thread [EMAIL PROTECTED]
that or add $form->input('id') to your form; that should create a hidden field w/ the ID On May 5, 12:21 pm, LucyFur3d <[EMAIL PROTECTED]> wrote: > That worked, thanks so much! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Help - Error validation wipes out database/record id during "edit"

2008-05-05 Thread LucyFur3d
That worked, thanks so much! --~--~-~--~~~---~--~~ 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 [EMAIL PROTEC

Re: Help - Error validation wipes out database/record id during "edit"

2008-05-02 Thread Chris Hartjes
On Fri, May 2, 2008 at 3:28 PM, LucyFur3d <[EMAIL PROTECTED]> wrote: > function edit($id = null) { > $this->Employee->id = $id; > if (empty($this->data)) { > $this->data = $this->Employee->read(); > } else { >

Help - Error validation wipes out database/record id during "edit"

2008-05-02 Thread LucyFur3d
I have been creating a basic CRUD app for an "employees" database. >From my "index" page, I click on an employees name and it takes me to the "edit" screen. That would take me to www.exampledomain.com/employees/edit/22 (where the employees unique id in the db is "22") One of the database field