PHP Basic MVC Framework Part 1 - Basic Setup

preview_player
Показать описание
This is part 1 of a series on how to create a basic PHP MVC framework.

Source files:
Рекомендации по теме
Комментарии
Автор

@thephpecho thanks for the quick response, I'm excited to take a look.

adamrwexler
Автор

Hi my base is ASP.NET MVC and today is the first day I installed PHP 5.x on my IIS7.5 and MySql and added first two tables in MySql. then I tried to search for MVC Bootstrapping in PHP and you are the video I reached. I guess First of all I should thumbs up for creating a perfect rout of your request, i.e Request file, Routes, controller, Model and View but Greatest thing is that you are also using Base Controller etc which tells me that i already know exact same things. Not bit diff, You rocked.

terasoft-official
Автор

@thephpecho lol no need to apologize. After all you were giving this away for free. I was just trying to give some helpful feedback to help you improve it. I hope to see more informative videos from you in the future.

AlanJames
Автор

Thank you for your tutorial. Are the source files available anywhere else? The link in the description is dead.

adamrwexler
Автор

Thanks You !

What is the IDE you use in Video ?

toanvaninfo
Автор

And YES suppose that my MySql instance is localhost, Can you tell me a tutorial where I they show how to connect to my Cars inventory db and fetch first record set. Then I guess you have same steps, like Create model for every single Table, put properties. Put validation over models. Create a Data context, put those Entity classes as Collections in DB context class . then create Data access folder, create repository and then in controllers access data thru repositories?is that it?Any ORM TOOL?

terasoft-official
Автор

Great tutorial, I've seen couple tuts about creating own MVC but your are BEST! Great job! Are you leading blog or something?

water_element-
Автор

So you know about any Quick MVC Framework which is ready to eat and ORM please do let me know.
I don't need php in such rush, but I was desperate to give few hands on first file, I never imagined i would be so expert in a day
thanks

terasoft-official
Автор

It looks like it says GVIM in the title bar.

Digitalsabre
Автор

@thephpecho, ok sorry for the comment. i am trying to find some decent tutorials that allow me to learn mvc but i am having a hard time. it seems too convoluted and much more difficult then just doing oop.

saburius
Автор

But next thing is that, Its pretty much same in Ruby and everywhere else. MySql workbench was amazing, I just reached in 20 minutes where I wanted to ;) like created db, tables, put FK and idnexes and that happened in such greatness .. and Yes Entity Model designer with MySql. the world is contracting and all 3 langs ASP.NET, Ruby and PHP have come so closer that I am feeling that I only need ORM mapper and I am Expert of PHP in one day. Other things like CSS, JS, JQuery, and ajax remain same:P

terasoft-official
Автор

You seem to know what you are doing, but you don't explain a lot. It might be because it's very hard to understand what you are saying or because you mumble to yourself at times.

AlanJames