• Home
  • Technology
    • Ebullientech
    • Entrepreneurship
    • Video Technology
    • Cloud Computing
    • Business Analysis
  • Healthcare
    • Pharmacology
  • Thoughts
    • Food
    • General
    • Stories
    • Places
    • Workplace
    • Social Issues
    • Reviews
  • Quotes
  • Ebullientech News and Events
  • About

Kamalika's Notebook

thinking nothing...............!!

You are here: Home / Kamalika / Technology / Ebullientech / PHP and MVC Design Pattern

PHP and MVC Design Pattern

February 11, 2015 By Kamalika Leave a Comment

The root cause of writing Software is simple Software solves problems. We analyze the requirements and break them into smaller problems (modules) and then write the solution for each such problem. Every line of code (LOC) we write is meant to resolve some problem. A pattern or design pattern defines how we solve problems, we must remember that a pattern is never the solution itself it is a way solution is written or developed or rather architected.

Around the world developers and solution architects are always excited about using MVC in fact the developer community often frowns upon those who don’t use it! I remember one of friends who once asked me… “OMG! You are not using any MVC of framework? Just writing native code?”… I tried hard to reason… “We may not be using MVC but we are using patterns and its pure OOP, I don’t think such application really requires MVC!”… “No… No… I think you must!”… I resigned!

What exactly MVC has to offer:

  • Reduced Code complexity
  • Code reusability
  • Increased flexibility
  • Decoupled code

Have we ever thought? MVC cannot solve the Code complexity or reusability or even flexibility problem, it’s the developers who can solve these problems. Writing decoupled code is also a developer’s thing; a pattern like MVC will create and environment with certain restrictions and rules but the code has to be written by a developer, the logic behind the code has to be thought out by a human!

Before I begin talking in favor of MVC let me clarify that MVC is a pattern, not a solution. It stands in line with all the other patterns like Adapters, Factories, Singletons, Modules, Interpreters, Observers… and so on.

What is MVC?

MVCMVC is much more than a three-letter acronym, which stands for Model-View-Controller; it has become something of a standard in modern web application designs because most of the web applications can be split into the same three tiers MVC has to offer; presentation (View), business logic (Controller) and data access (Model). At the heart of MVC lies the concept separation of concerns or separated presentation, which creates a separation between the domain objects and the GUI elements (user interface).

  • Model – It constructs the central component of the MVC pattern, application attributes and behaviors are contained in the Model, and hence they hold the business logic of the application.
  • Controller – It controls the application interactions; it sends commands to the Model to update Model’s state and it can also send commands to the View depending upon Model’s response.
  • View – It is the user interface or GUI, which is presented to the end user who is completely unaware of the back end operations or any application. It collects data from the end user and sends to the Controller for processing and takes back processed data from the Controller to represent it back to the end user.
Pages: 1 2 3

Filed Under: Ebullientech, PHP Tagged With: CodeIngiter, Ebullientech, Ebullientech Interactive LLP, Laravel, Model View Controller, PHP, PHP Frameworks, PHP MVC, Symphony, Zend Framework

« PHP vs. Java which is a better Object Oriented Language?
Install the PHP DOM Extension on CentOS »

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Connect with Facebook

Let’s connect…

  • Facebook
  • Instagram
  • LinkedIn
  • Twitter
  • YouTube

Hello There…

I'm Kamalika, a techpreneur & startup mentor, blogger, hobbyist photographer, Netflix & Kindle indulgent, food connoisseur, Starbucks aficionado and former Disney employee ...next

Looking for something?

Tags

All in One SEO Pack AWS Banaras Blogger Blogging Blogs Dasaswamedh Ghat Ebullientech Ebullientech Interactive LLP Facebook Facebook Developers father's day father's day wishes father's day wishes for dad fathers day love Fathers Day Special Fathers Day wishes from daughter Father’s day memories GeoTech GeoTech Informatics HipHop for PHP Kamalika Guha Roy Kashi Ganga LAMP MySQL Nabaneeta Guha Roy Online Marketing PayPal PayPal's suspension of Indian bank transactions PHP PHP & MySQL Saraswati Puja Search Engine Optimization SEO Startup The Ganges TypePad UCO HUT Varanasi Web 2.0 Web 2.0 Design Web Design Web Marketing WordPress WordPress.COM

Timeline

  • 2024 (1)
  • 2021 (3)
  • 2020 (7)
  • 2019 (4)
  • 2018 (1)
  • 2015 (6)
  • 2014 (13)
  • 2013 (9)
  • 2010 (7)
  • 2009 (2)

Topics

Copyright © 2021 · Kamalika Guha Roy, Powered by: Ebullientech