hi!

> Most obviously, the add() and edit() functions can often be the same form,
> if the view is coded carefully and conforms to cake standards.  Use
> something like $this->render('edit') within the add() method. Alternatively,
> don't have a specific add method and have your edit method assume that no
> supplied ID means a new one. That might work in your circumstances, or maybe
> not.

this is exactly what i need... my question is, how would you detect in
your view whether you are showing the "edit" o "add" form?
i mean, what would be the right way to do it?

thank you!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to