|
Posted by Sanders Kaufman on 09/18/07 13:06
NoDude wrote:
> Why would you create a new publication in the edit method? Can't you
> have a separate method that's called addPublication? You may know not
> to call EditPublication (at least untill some time hass passed and you
> forget), but imagine my (or any person's) surprise when I one day take
> over this application, use this class and edit is actually used for
> create.
That wasn't real, live code.
It was just a representation of a concept.
The actual code file is a couple of hundred lines long.
But the reason why I think I need a new Publication object is because
it's a web page that lets you edit other web pages. Thus the current
object isn't the one you're editing, but rather the one you're viewing.
I (think I) want to create a new instance of the publication object,
because I'm editing a whole different publication.
I think this is called MVC - Model View Controller, but I don't know why.
Navigation:
[Reply to this message]
|