Results 1 to 5 of 5

Thread: Mvc

  1. #1
    Dipke is offline Member
    Join Date
    Aug 2010
    Location
    Leuven, Belgium
    Posts
    86
    Rep Power
    0

    Question Mvc

    Hi,

    When using MVC what is the difference between :

    Model model = new Model();
    View view = new View(model);
    Controller controller = new Controller(model, view)
    ;

    and

    Model model = new Model();
    View view = new View();
    Controller controller = new Controller(model, view);
    In the first example the view gets the model. In the second not.

    Kind regards
    Dipke

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,453
    Rep Power
    20

    Default Re: Mvc

    Quote Originally Posted by Dipke View Post
    When using MVC what is the difference between ...
    You've answered that yourself.
    Quote Originally Posted by Dipke View Post
    In the first example the view gets the model. In the second not.
    Also, go through the forum FAQs and discover how to correctly post code.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,453
    Rep Power
    20

    Default Re: Mvc

    Wasn't this adequately addressed by JosAH in your earlier thread?
    MVC question

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  4. #4
    Dipke is offline Member
    Join Date
    Aug 2010
    Location
    Leuven, Belgium
    Posts
    86
    Rep Power
    0

    Question Re: Mvc

    Hi,

    i asking actually what the best approach is for MVC or that both systems are equal ?

    Kind regards

  5. #5
    Dipke is offline Member
    Join Date
    Aug 2010
    Location
    Leuven, Belgium
    Posts
    86
    Rep Power
    0

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •