Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Creating an MVC from Scratch with PHP - Part 1

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
15,707
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Mar 9, 2011

This video series will teach you how to create a Model-View-Controller framework with PHP. (https://github.com/BaylorRae/PHP-MVC-Tutorial)

In this video we start with getting the basic layout for all the files, and prepare for loading the controllers and actions using the Sammy framework.

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 2 dislikes

Link to this comment:

Share to:

Uploader Comments (ScoobyDooobyD00)

  • Grate tutorial but I'm pretty sure that the sammy class is a Singleton pattern and it's not well implemented and goes against the many design principles but correct me if I'm wrong.

  • @NexusShodow You're right, Sammy does follow the singleton pattern, but I'm not sure which design principles you are referring to. I chose Sammy because it has an alternative to PATH_INFO which means it will run on most shared servers. In addition, it allows the same URL to handle get and post methods.

see all

All Comments (16)

Sign In or Sign Up now to post a comment!
  • i have been trying to do this for so long! i did not want to learn rails so i wanted to do it in php!

  • baylor man.....your tutorials are like totally gnarly dude . I was like ...WHOAHH. Keeping rocking .

  • I loved this tutorial because it shows how much you've grown as a programmer since you coded the CMS series. I was looking for ideas on how to design my CMS's interface when I found your video. I disagreed with some of the practices you were using when I saw that you had a MVC tutorial (which picked my curiousity). I ended up learning quite a bit and will be using some of your design ideas, so thanks a lot :)

  • @ScoobyDooobyD00 Some believe that the singleton pattern is the root of all evil. I don't follow their cult but I can see how the pattern can be abused.

  • hey man, thanks for the video, im learning alot about mvc. even though ive been programming a little while now.

  • will you ever do the part 3 of "how to make a game in php" ? :(

  • @ScoobyDooobyD00 Don't get me wrong I understand why you used the class and I still thing it's a great tutorial about MVC. The design principle I was referring to is not to declare all methods as static because of security issues but this isn't your fault.

  • Hey Baylor great tutorial but I have a question. Will an MVC framework work without the htaccess file?

    Keep making tuts, you're helping a lot of us ;)

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more