Hi, first post here.
I'm just wondering, how does the Zend framework sort of 'see' the classes before instantiates them? Obviously the file isn't included/required anywhere within the code, yet you can always create the object. Does anybody know?
Thanks,
(S)adam.
How do Zend do it?
Moderator: General Moderators
Re: How do Zend do it?
They use autoloading, which allows PHP to "magically" find those classes automatically.
http://php.net/manual/en/language.oop5.autoload.php
http://php.net/manual/en/language.oop5.autoload.php
Re: How do Zend do it?
Ahh perfect, cheers!