Reputation: 325
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
Reputation: 9671
This is just good practice as it creates a catchable error where the framework can exit gracefully.
Upvotes: 1