Jump to content

I want to write own MVC


GioBulia
 Share

Recommended Posts

Hello, I want to write own MVC, I need some tutorials can anyone recommend me any tutorials website for learn OOP and MVC in this moment I have made this: bootstap.php

class Bootstrap {function __construct() {  if(isset($_GET['mod'])) { $mod = $_GET['mod']; }  if(ctype_alnum(@$_GET['mod'])) { $mod = explode('/',$mod); }  if(file_exists('system/modules/' . $mod[0] . '.php'))  {   require_once 'system/modules/' . $mod[0] . ".php";  }  else {   require_once 'system/modules/pagenotfound.php';  }}} 

Thank you

  • Like 2
Link to comment
Share on other sites

After developing systems in different ways, I'm not sure I like MVC the best. I'd rather have the classes represent objects of the system like users, posts and other things.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...