davej Posted July 11, 2012 Share Posted July 11, 2012 Seems like these are almost the same idea? 1 Link to comment Share on other sites More sharing options...
birbal Posted July 11, 2012 Share Posted July 11, 2012 did you check this?http://en.wikipedia.org/wiki/Multitier_architecturespecificalyhttp://en.wikipedia.org/wiki/Multitier_architecture#Comparison_with_the_MVC_architecture Link to comment Share on other sites More sharing options...
davej Posted July 11, 2012 Author Share Posted July 11, 2012 http://en.wikipedia....VC_architecture Oh, that pretty much answers it. I thought they didn't quite match up. So in the MVC if a data-access class is used and all data accesses pass through it, would that satisfy both schemes? Link to comment Share on other sites More sharing options...
birbal Posted July 11, 2012 Share Posted July 11, 2012 in MVC requests are handle by controler. it determines which models to load and which view to load. model does not interact with view they pass the data to controler which decides which view should call. that way it separates model and view. if you check the wiki page you can find the "MVC is triangular architecture"MVC:[Model] <===> [Controler]===> [view] Three tire architecture same as the concept of MVC from the point of view of data separation but it does not work like that triangular manner. it linear manner. some thing like we request page on client, client reach the php page, php page reach the DB data, it returns data back to php, php returns data back to the client. it enters to one point and move in linear way and exits in same linear way backwardly. Link to comment Share on other sites More sharing options...
davej Posted July 11, 2012 Author Share Posted July 11, 2012 I have only implemented MVC in Java. JSP pages presented the view. Submits were directed to servlets which were the controllers. "Business" classes used by the servlets were the models. In addition I wanted to have the database isolation of the 3-tier scheme so I tried to get all SQL code out of the servlets and into a dedicated DB class. I don't know if there is actually a name for trying to do both? [Models and Database] <=====>[Controller] <=====> [View] Link to comment Share on other sites More sharing options...
baragan Posted July 11, 2012 Share Posted July 11, 2012 i find three tier a little bit easy to code for it has less code separation. but ir is true that for great cms systems its better to use mvc. it would me much easier for other developers to understand what is really going on. that's is imo. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now