iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-04-2009, 06:05 AM
WebProWorld New Member
 
Join Date: Jan 2009
Posts: 1
gopi_27 RepRank 0
Default What is the purpose of using MVC in PHP?

Hey, Anybody explain about Modular View Controller in PHP with a example. What are the special features of MVC.....
Reply With Quote
  #2 (permalink)  
Old 01-04-2009, 09:10 AM
DaveSawers's Avatar
WebProWorld Veteran
 
Join Date: Dec 2006
Location: Calgary, Alberta, Canada
Posts: 492
DaveSawers RepRank 3DaveSawers RepRank 3
Default Re: What is the purpose of using MVC in PHP?

Modular View Controller doesn't seem to be a part of PHP (at least it's not mentioned anywhere in the manual). A Google search on the phrase didn't return any useful results either.

So do you have any information on what it is more exactly?

Or do you mean Model View Controller? If so, doesn't the website contain all the information you need? http://www.phpmvc.net/
__________________
Dynamic Software Development
www.activeminds.ca

Last edited by DaveSawers; 01-04-2009 at 09:16 AM.
Reply With Quote
  #3 (permalink)  
Old 01-05-2009, 08:10 AM
WebProWorld Member
 
Join Date: Aug 2008
Posts: 65
maneetpuri RepRank 0
Default Re: What is the purpose of using MVC in PHP?

Hi,

Yes you are right MVC is not a part of PHP rather it is a concept of technique, you can find more about it at CodeProject: Using MVC to Unit Test WPF Applications. Free source code and programming help

Cheers,

~Maneet
__________________
Web Design Services \ Data Mining Services
"Our Vision, Your Expansion"
Reply With Quote
  #4 (permalink)  
Old 01-16-2009, 02:14 AM
sushil's Avatar
WebProWorld Pro
 
Join Date: Apr 2008
Posts: 118
sushil RepRank 1
Default Re: What is the purpose of using MVC in PHP?

MVC is the idea that you have three different pieces that work in unison to form a complex application. A car is a good real-world example of MVC. With a car you have two views: the interior and the exterior. Both take input from the controller: the driver. The brakes, steering wheel and other controls represent the model: they take input from the controller (driver) and hand them off to the views (interior/exterior) for presentation.
Reply With Quote
  #5 (permalink)  
Old 01-18-2009, 09:23 AM
MrGamm's Avatar
WebProWorld Pro
 
Join Date: Dec 2007
Posts: 268
MrGamm RepRank 3MrGamm RepRank 3
Default Re: What is the purpose of using MVC in PHP?

A model view controller could be considered an object or an array of values which sets the state for your application based on what it receives as input.

I'm not sure why terms model, view, controller are used specifically. I prefer the term routing.

Some features might include telling the application which libraries to load, who has permission to which sections, ect.

I do believe the primary purpose of it is to make people aware that it should be the core of your program. I think phpBB is a good example of an application with an extremely loose MVC... nothing is defined in the application itself (last I checked) but it's rather a consequence of how the files are organized.

While an application which passes everything through a single file and loads libraries and routes processes through it might be considered more rigidly defined as it's can be clear to everyone as to how the application actually works by looking at the code (array structures and objects) rather than sifting through it for a few months.


These are my own definitions... they are probably not the academically correct ones...
__________________
James Weisbrod - programmer
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the purpose of iso-8859?? subhzash Web Programming Discussion Forum 10 03-13-2008 10:04 AM
Marketing On Purpose WPW_Feedbot Marketing Strategies Discussion Forum 0 10-05-2005 03:00 PM
changing website purpose emils Search Engine Optimization Forum 9 05-22-2005 01:42 PM
Do SEO Companies serve any useful purpose? banseos Search Engine Optimization Forum 44 01-19-2004 11:01 AM


All times are GMT -4. The time now is 11:43 PM.



Search Engine Optimization by vBSEO 3.3.0