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

  • SEARCH
  • Home
  • 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 1110259
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:22:04+00:00 2026-05-17T02:22:04+00:00

I am looking for a tutorial / book that guides me to understand the

  • 0

I am looking for a tutorial / book that guides me to understand the Controll functions and the best practices to write my own controller + Model

Thanks in advance.

  • 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-17T02:22:04+00:00Added an answer on May 17, 2026 at 2:22 am

    Im sure theres plenty of links been posted to get you started but some important factors in creating an MVC is:

    • Static Registry Class (Store objects and fetch with a global scope)
    • Router (A class that determains the controller/method and params from URI’s)
    • Base Controller (just a small abstract class then the users controller can extend)
    • SPL Auto-loading (this will allow users to extend classes such as Model_Database)
    • Structure (you should create directories in accordance with names, I.e Library_session would load /library/session.class.php)
    • Model Abstraction (Account for all types of storage, Database, Disk etc)
    • Error Tracking (Always make sure your logging and capturing errors)

    They are just a few tips and ideas you should be thinking about when you create your system.

    What you should also do is user other frameworks and build some sample projects, learn how an MVC Framework should be sued, so when your building one you know what the user should expect, then just really study the core structure of the framework.

    Take into consideration in PHP the following are usually how MVC Works

    • Controller (this is executed depending on the URI)
    • Model (Accessed from the controller and should be the I/O of Data)
    • View (Templates basically)

    but you can work with a MVCL which is (M odel/V iew/C ontroller/L language)

    Language is not a specific in the original documentation but its been adopted a few times in regards to the pattern structure, An example of the file structure below will guide you into whats the main purpose of the +L

    M: \catalog\model\catalog\product.php
    V: \catalog\view\template\product\product.tpl
    C: \catalog\controller\product\product.php
    L: \catalog\language\english\product\product.php
    

    An example of what company / project uses this method is: OpenCart, AND I HIGHY RECOMMEND YOU LOOKING AT THE ARCHITECTURE!

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

Sidebar

Related Questions

I'm looking for a book/site/tutorial on best practices for relational database design, tuning for
I'm looking for a tutorial, blog entry, or some help on the technique behind
Is this possible? I am looking forward to a tutorial which explains the steps
I am looking for basic examples/tutorials on: How to write/compile libraries in C++ (
looking tutorials for integrating OpenId feature in .net
I'm looking for tutorials or walkthroughs for converting DTS packages into the new SSIS
I am looking for some (preferably) online tutorials on making controls with 'Rich design-time
I've been looking around for some decent tutorials on .NET remoting (old style MarshallByRef),
I’m looking for some samples/tutorials/general pointers in doing either of the following. 1) Create
I have been looking through Scott Guthrie's MVC tutorials and it seems like the

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.