Most voted "spl-autoloader-register" questions
8 questions
Sort by count of
-
14
votes1
answer2472
viewsWhat is spl_autoloader_register in PHP?
What is the role of the spl_autoloader_register, and in which possible scenarios this function could be included?
-
2
votes1
answer55
viewsclass_exists is running spl_autoloader_register
I created a simple script to automatically load classes using spl_autoload_register, but I noticed a strange behavior when I use class_exists the spl_autoload_register is executed, example: <?php…
-
1
votes1
answer369
viewsI am unable to load the classes using spl_autoload_register
I’m trying to load a class that is in another folder in the core.php file and I’m not getting it My browser informs this message Fatal error: Uncaught Error: Class 'Core' not found in…
-
0
votes0
answers41
viewsProblems optimizing autoload login system
I did an optimization in the login and as I had problems with directory I decided to search the web and found a nice PHP resource that is the autoload. I did all the implementation according to the…
-
0
votes1
answer56
viewsCan you list all namespaces from a specific one?
I need to instantiate a class by just passing her name and trying to instantiate her at several different nemapaces until I do. The Framework does not accept instantiating any class without the…
-
0
votes0
answers280
viewsProblem in Autoload PHP
I’m starting to POO and SPL and recently faced the following problem: I have the following file that makes the whole bootstrapping of my application init.php, and in it, I do the autoload of all…
-
0
votes0
answers96
viewsspl_autoload_register does not work
I am developing a system in mvc. Developing locally, everything worked correctly... But when I put it online to be able to test, it just didn’t load, it was 500. So I started trying to find the…
-
0
votes0
answers20
viewsHow to change __autoload to spl_autoload_register using array?
I know there’s a lot of websites about it. But I confess that I searched and did not understand. The point is that this site is old and was on a server needed to change it to newer version of PHP.…