Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4234952
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T02:25:48+00:00 2026-05-21T02:25:48+00:00

I’m quickly getting knee-deep in larger and larger applications so I thought it’d be

  • 0

I’m quickly getting knee-deep in larger and larger applications so I thought it’d be a good idea to learn what patterns are and how they work, etc. So, I’m watching some tutorials on youtube and reading some books on patterns and design principles and MVC comes up. I’d heard of it but never really understood it and have yet to use Zend or CodeIgniter or the others that use it intrinsically.

Anyway, in the process of studying the topic of MVC, it seems as if I’m already using it. Can someone verify? Here is how I normally go about setting up an application using a login system as a for instance:

login.php – this is the html page that shows the form. The form submits to:

process.php – this class checks the value of submit and based on the value, validates inputs, checks password, sends back applicable erros, if everything is kosher it instantiates a User object:

user.php – this is a class that templates the properties and methods a user will need including things such as adding the user to the database, pulling profile information, logging out, instantiating a private message object from the user, sets the session variables needed, etc. Information is then returned to process.php which then header redirects back to the main page with a successful login.

So…is this a simple MVC? In the studying I’ve done, login sounds like view, process sounds like controller, and user sounds like model. I’m sure there’s a bit more in-depth here, but I’m really trying to wrap my head around this stuff so any adjustments to my logic are more than welcome. Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T02:25:48+00:00Added an answer on May 21, 2026 at 2:25 am

    MVC is a way of keeping your three main parts of the application separate for the purposes of increasing maintainability and usually with it, performance.

    For example, if you’re using PHP 5.3 (you should be, late static binding, namespaces etc are very useful!), you can use a namespace for each of the sections of your application. Then, when you have an error in your application logic, you know exactly that you need to go to the model for a particular action and fix it.

    Views allow us to keep display logic separate from the business logic of the application. Some might use XHTML with inline <?php echo $myVar; ?> kind of things, while some may prefer templates. This means when you edit the GUI or other outward facing part of your application, it will never have any impact on your business.

    It means all your code is organized and increases maintainability, while also modularizing your application. It’s even better if you use an autoloader (always use spl_autoload_register('myAutoloader') rather than function __autoload($className) as this can be overriden by libraries and things) so your app only loads what’s needed, when it’s needed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
this is what i have right now Drawing an RSS feed into the php,
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.