I've been fighting it for the whole day now, and it doesn't get any more
clear for me.
The idea is simple, i want to have my library code under one of my module
directories. Like this:
/application/modules/somemodule/
/application/modules/somemodule/controllers
/application/modules/somemodule/models
/application/modules/somemodule/views
/application/modules/somemodule/library
/application/modules/somemodule/library/Exception.php
I would like it to follow ZF naming conventions and have class names
prefixed with a vendor namespace like this:
Shift_Exception extends Exception {
}
Is it possible to setup autoloader somehow to accomplish this?
What i've tried and what doesn't work:
1. Putting the library on the include path and regestering corresponding
namespace (need to put my libary code inside another directory 'Shift')
2. Registering Resource_Autoloader and adding resources - this one seems
better and it allows loading resources from subfolders if they were
correctly added with addResourceType(), but it doesn't seem to work for the
files in the library folder itself, in other words with just the base Shift_
prefix.
So to state it even more simple: how to autoload namespaced classes from
specified folder??
I would REALLY appreciate any help or advise here as it is starting to be
kind of urgent.
Dmitry.
--
View this message in context:
http://www.nabble.com/Is-it-possible-to-have-library-code-under-module-directory-in-ZF--tp24778500p24778500.html
Sent from the Zend Framework mailing list archive at Nabble.com.