On 9/28/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> function delete($id)
> {
> if ($this->User->del($id))
> {
> $this->Session->setFlash('Customer '.$id.' deleted.');
> $this->redirect('/users');
> }
> }
>
> Instead of $id, i would like to print out the name of the customer. My
> table in the database is calles "users" and the field's name is "name".
> How can i request that name in cakephp?
Do a $this->User->findById($id) before the del() and store the name in
a variable.
--
Martin Schapendonk, [EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---