PHP Object Oriented Programming (OOP): Autoloading (13/13)

preview_player
Показать описание

Official site

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

The one thing I never understood, I now finally understand. Thanks Alex.

DaBananaboat
Автор

Although I was familiar with most of these (in the total 13 video I mean), I didn't want to stop watching because the narrator's accent is just so great. You should be composing audiobooks, seriously.

And thanks for this autoloading trick. We'd love to see a tutorial about using namespaces as well.

kublaios
Автор

This is the fastest OOP tutorial I have ever seen and understood.. sort of :)
Thanks 

emblemcc
Автор

My god thank you you made this ridiculously easy for me to understand THANK YOU! you have earned my sub!

BALLAsTvDotCom
Автор

Oh my god... I know this is video was published a long ago, but something from the past just saved my day! I knew this existed, but I thought I had to do all of spl_autoload_register's work manually before calling it...

miguelnogueira
Автор

thumbs up for the subtitles. didnt need them but i know some who will appreciate it.

FawziBreidi
Автор

2 things i love: British accent & simple explanation. Much obliged.

qgfieqk
Автор

The autoload function takes a variable as a parameter $class_name for example.
How does the function knows the class name that we are trying to include?

tasosts
Автор

Good job with the tutorials guys. How would you handle all the pages of an application? Would you just keep them in the public directory?

Thanks,

commandantp
Автор

This really helped clarify a number of different things for me. Really great explanations all around. Thanks so much for this and really really well done.

blackwiredotio
Автор

i really liked this approach of include files, can u suggest a source/site where i can find these kind of best practices

nikhilumraskar
Автор

I don't get it. So the spl autoload register function is passing filename values into the closure function? What is being passed into the closure function?

theendlesssuffering
Автор

Nice tutorial but how you would autoload classes with namespaces?

oleksiivilchanskyi
Автор

why closure only look class not variable, array or others? Is it because spl_autoload_register only for class?

bennybenbenw
Автор

there are some things that are not explained good enough but then I found this, which answered my problems, thanks very much. spl_autoload_register is a wonderful thing to have and all we do is update on folder :) thanks again

Jimmy
Автор

Should take a look at PSR autoloading as well as Composer.

williamboman
Автор

this may help some one: this script worked on local for me, but failed on live, the reason was my class names were capitalized. All I had to do was add strtolower to $class to fix it.

chemykl
Автор

This was a great intro to OOP. Thanks so much!

TareiKing
Автор

How does it know that that php file is a class file? I don't have a subfolder for my class files, they are together with the other php files.

dgloria
Автор

Thanks for this tutorial, I learn't a lot during this about Object Oriented PHP!

ManMadeToons