Page 1 of 1

what do you mean by declared classes or include/requires

Posted: Thu Feb 25, 2010 5:43 am
by dude81
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.

Re: what do you mean by declared classes or include/requires

Posted: Thu Feb 25, 2010 8:22 am
by Salaria
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

Re: what do you mean by declared classes or include/requires

Posted: Thu Feb 25, 2010 8:58 am
by dude81
Thank You Salaria, I too figured out the same one. It was about autoloading feature itself. I did not to use it earlier.