OK, in your controller, you have the two functions, and which function
gets called is dependent on which URL is hit (or which link is
clicked, or which button is pushed).

In the view, you would just need to check for a variable that was set
in this function to decide what to do.

You could set up an element for edit and another for view, and then
just display the right bits based on that variable.

On Nov 10, 8:46 am, Shogun <[EMAIL PROTECTED]> wrote:
>
> 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