Hello all,
I've used to set_include_path() to call a custom library that I wrote with classes. What I did was I'm able to get all the classes of all other includes except for my library classes. If I'm using include_once or required_once it includes while if I'm using class_exists method, it does not verify the classes that are in my lib.
Also what is this declared classes.
what do you mean by declared classes or include/requires
Moderator: General Moderators
Re: what do you mean by declared classes or include/requires
Hi,
Can you please paste for better understanding.
You can also use __autoload function to load your classes. check link for reference http://php.net/manual/en/language.oop5.autoload.php
Can you please paste for better understanding.
You can also use __autoload function to load your classes. check link for reference http://php.net/manual/en/language.oop5.autoload.php
Re: what do you mean by declared classes or include/requires
Thank You Salaria, I too figured out the same one. It was about autoloading feature itself. I did not to use it earlier.