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
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
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 {
>
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