Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Implementing Model-View-Controller

by perrin (Chancellor)
on Jan 04, 2006 at 17:07 UTC ( #520957=note: print w/replies, xml ) Need Help??


in reply to Implementing Model-View-Controller

You may be getting confused by the fact that most of the current MVC web tools (CGI::Application, OpenInteract, Catalyst) are fairly different from the approach described in the classic MVC theory articles. These days, MVC for the web usually means one class that handles all the web interaction (the controller), some fairly basic classes for updating a database with Class::DBI or similar (the model), and some templates (the view). It's not exactly MVC, but it's a simple approach that works well. If you look at some of the many sample apps written with any of the three tools I mentioned, you'll see this basic approach.

Replies are listed 'Best First'.
Re^2: Implementing Model-View-Controller
by ruoso (Curate) on Jan 05, 2006 at 13:52 UTC
      I would say that the differences in the view are less significant than the way the model has been changed. Putting application logic in the controller was not part of the original idea, but since everyone now uses basic O/R mapping tools like Class::DBI as their model, all the logic that used to go in the model ends up in the controller.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://520957]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2021-04-22 10:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?