You are here: Re: Recursion(?) in My Class « PHP Programming Language « IT news, forums, messages
Re: Recursion(?) in My Class

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация