Afficher un message
Vieux 18/09/2007, 14h06   #3
Sanders Kaufman
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Recursion(?) in My Class

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.
  Réponse avec citation
 
Page generated in 0,04403 seconds with 9 queries