How to automatically load PHP classes using spl_autoload_register.

preview_player
Показать описание
In this video I'm going to show you how to easily load PHP classes using spl_autoload_register().

You'll be glad to hear that it's just a few lines of code and by using spl_autoload_register() we can avoid having to write 'include' over and over.

At the end of this video you'll know how to easily autoload PHP classes. You'll also know why some frameworks insist upon controller files having uppercase first characters.

PLEASE NOTE: This video is part of a series called PHP from Intermediate to Advanced.
Рекомендации по теме
Комментарии
Автор

Haha your humor and accent are the perfect mix for the best tutorial in the world. This is hands down the funniest PHP tutorial I've ever seen :D

johnrobertsonnocos
Автор

I came from the PHP documentation, and understood nothing, but this video made it so easy to understand. Thank you!

hozay
Автор

I'm loving the simplicity of the DC definition!
Great work DC and a wonderful compliment to the material on SCA

dafa
Автор

Alright, this guy tutorials will help me get a job.
Def. subscribing.

makiccs
Автор

A real fella register automatically the DC definition !!

thehunter
Автор

I had such a laugh during this tutorial. Also learned what I wanted to. Your accent is amazing brother!

Laideroo
Автор

Simple and straight. Lovely. Thanks much.

manishdeshpande
Автор

hahahaha, you are now my new hero. Thanks for the tutorial mate!

sergiboquerafuentes
Автор

Thanks so much DC! Straight to the point!

I got so confused by some loser on udemy with no idea what he's talking about, lol.

jovan_script
Автор

This is Gerbil proof tutorial. Thanks.

caesarczech
Автор

Wow DC definition is definitely the easiest explanation to understand for even novices…👏🏻👏🏻👏🏻

asianeducationalconsultanc
Автор

Thanks David for demystifying this concept

judeleon
Автор

Good work Respected sir keep up it for the sake your junior like us all thank you ...

farhanshah
Автор

amazing tutarial, also very fun😅🙏👏👏🙏🙏👍👍

Morteza
Автор

hi, great job DC, congratulations, nowdays, Im thinking about hello tutorial when you're learning, but the real life, in production, you find absolutly complicated code than hello world tutorial, please, keeping teaching us

jujomoto
Автор

Lol you just got a new subscriber sir. You are amazing!

MBkingsoft
Автор

"You don't need to make life complicated." - Halle-effing-lujah.

NotMarkKnopfler
Автор

im not sure what the passed $class variable contains. I have some controler classes named "Name-contr.classes.php" and these does not seam to be included by the autoloader. Is the "-" character illegal in the namegiving, and if so, what can i use instead ?

Holycrabbe
Автор

Hello David, How are you!
Can you please make some tutorials on Cricket Match scoring website in php and ajax. Because Teaching way is awesome. Last three year, I am following your videos/tutorials.
Thanks....👍🏻

sunilmahur
Автор

I like to ask a question i like to add a component class with many function as component folder

puneetsharma