Lelis
Lelis

Reputation: 325

check file in framework

I see most frameworks in PHP using "file_exists" in "class loader" before including the file or return an error.

Does this have any practical application or is it just a form of debugging errors to the "inexperienced" user ?

thanks

Upvotes: 1

Views: 49

Answers (1)

konsolenfreddy
konsolenfreddy

Reputation: 9671

This is just good practice as it creates a catchable error where the framework can exit gracefully.

Upvotes: 1

Related Questions