MVC Framework

The basics of MVC Framework    

Technology

We bring together a core team of highly skilled specialists, who outclass their rivals on every web development project they immerse themselves in.

Beehive Digital excels in developing grand-idea web applications that work. Our websites look and feel impressive and communicate every message with power and conviction.

Accessibility and sturdy reliability are of paramount importance, as is awareness of your evolving needs. We understand that businesses change and grow, and their online marketing platform must be able to run with and react to this expansion.

Our work complies with World Wide Web Consortium Standards (click to validate)

Development Framework

The structure of all our applications (however big a small) is underpinned by Model-View-Controller architecture (MVC). This helps us build reliable and easy to maintain websites where business logic is isolated from user interface.

  • The browser makes a request, such as http://beehivedigital.com/Hello
  • The web server (Apache) receives the request. It uses mod rewrite to find out which controller to use.
  • Controllers do the work of parsing user requests, data submissions, cookies, sessions and the “browser stuff”. They’re the pointy-haired manager that orders employees around. The best controller gives orders without knowing (or caring) how it gets done.
  • Models are PHP 5 classes. They talk to the database, store and validate data, perform the business logic and otherwise do the heavy lifting.
  • Views are what the user sees: HTML, CSS, XML, Javascript. Views are merely puppets reading what the controller gives them. They don’t know what happens in the back room. The views generate HTML code: divs, tables, text, descriptions, footers, etc.
  • The controller returns the response body (HTML, XML, etc.) & metadata (caching headers, redirects) to the server. The server combines the raw data into a proper HTTP response and sends it back to the user browser.