... editpost and newpost pages.

I'm creating a mini-discussion forum, and not sure whether or not to
have the "new post" and "edit post" pages just simply combined.
 But I don't want the URL bar to say "edit" if someone is creating a
new post.  (The other aspects of how to do it this  way are of course
easy:  just have a single edit controller to save() without an id,  or
save()  with an id)

Is there an easy to use two controllers, but only have to maintain the
code for one single form ?    Does anyone use it this way.
I'm thinking maybe use the two views (of course, since you have two
controllers), but use an element that holds the Form and import this
element where you need it?

Thanks


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to