Start Creating a Very Basic and Simple PHP MVC Framework From Scratch

preview_player
Показать описание
See how to create a very basic and simple PHP MVC framework From Scratch. It is a good start. You can add auto-loader, use namespaces, follow PSR-2, create DAL, models etc. There is a lot of improvements to be made, but it shows the basic ideas.
Рекомендации по теме
Комментарии
Автор

This is the best PHP MVC tutorial among all that I have been across. Thanks a lot!!!

nooruddinqureshi
Автор

VERY useful information for those who have worked only with frameworks before. Works great in 2020!

gedertsp
Автор

I am only half way thru but its has already shed a lot of light on actually how to create a simple PHP MVC framework. I started out by adding namespaces etc. Good Job

AnthonyRamtulla
Автор

PHP old constructor syntaxe: the method that gets the same name as the class is the constructor. That's why Index/index is called in Controller.

FredOooUnavailable
Автор

I started learning MVC with your video. thanks and more videos to come :D

johnsuyang
Автор

Thanks a lot uncle this is exactly what i need.

rameshdahal
Автор

Alright so I spent the whole day to understand and build the Simplephp framework. Thanks. I had a lots of problem. Would have be cool to explain how to create that "create" action at the end.

Seldoon
Автор

Im following your steps but i have this:" Fatal error: Cannot declare class Error, because the name is already in use in on line 4" please help

davidmaile
Автор

It's a nice initiative from you. is your web server nginx or apache ?

icantchosemyname
Автор

time: 21:13 .You made method: indexAction instead of index ( as it was acted like __constructor) . do you solved it anyway ?? Codeigniter or other frameworks have index method. can you solve that ?? Very good tutorial. Thankyou

subhadippahari
Автор

I use your code but its give me an error controller doesn't exist!! I don't why this show me this error, Because the code is the same as your code.

yashsoni
Автор

I'm confused on how you send a new object from an extended controller to a controller. How are you able to use $this inside of a controller that extends the master? this would result in a fatal error using $this when not in object context in php.. Just looked at the source files you provided..

xatic
Автор

how use separated route file .

Route::get('/hello');

to call hellController ??

hkteqlp
Автор

Hi, thanks for your tutorial but in my case it won't work unless a add a .htaccess file with
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.php [L]

panagiotis
Автор

22:26 your url says: 'Index/index/4' for which i was expecting error. I think because of some server configuration you made before making this video, this code works. Your server knows that there is an index method in Index class. Even at 4:21, i was expecting errors because the link 'Index/index/4' is completely invalid.

pranaykarani
Автор

I found this weird because the controller supposed to be at index 0 not index 1, the method at index 1 and so one

webdivinecreativity
Автор

Also I didn't get it why you are using ucfirst? Can you explain more on that please?

Seldoon
Автор

why are you using windows? o_O isn't linux better?

PopescuSorin
Автор

Защо всички пишат някакви модели, класове, и както всички казват "бла бла бла", без да обяснят защо ги пишат и какво прави всеки ред. Дори най-простото обяснение защо го правят не се случва. Големия Gattaka също казва "толкова е просто" а дори не може да го обясни.
Има нещо което не ни казвате за да хванем смисъла.

ProgressiveID
Автор

Please do not watch this video for learning purposes.

lerietaylor
welcome to shbcf.ru