Hi,
I have the following (standard) directory structure:
site/application (contains models, forms, view directories etc)
site/library
site/library/Zend
site/library/MyLib
..configured in my application.ini as:
includePaths.library = APPLICATION_PATH "/../library"
autoloaderNamespaces[] = "MyLib_"
I have the following files in my library path:
site/library/SomeDir1/Foo.php
site/library/SomeDir2/Bar.php
Now the following is throwing a class not found error:
class MyLib_SomeDir1_Foo
{
protected $bar;
public function __construct(){
$this->bar = new MyLib_SomeDir2_Bar();
}
}
The namespace autoload works fine to load the initial class (Foo), yet when
it's within the library folder it doesn't seem to be able to find class Bar.
What am i doing wrong?
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/Autloading-classes-from-within-library-path-not-found-tp2056443p2056443.html
Sent from the Zend Framework mailing list archive at Nabble.com.