At first, i decided to change my library's name from Mtwd to Bolzz. So, the links and the classname changed again. Sorry for that!
source codeAPI@Ralph Schindler
Thanks for your feedback. I implemented the PluginLoader you said, and the benefit was great. There are no more constants for file extension and a default path. Also the member array $paths could be canceld.
And further a new feature for my Manager is coming with this PluginLoader class - class names and filenames can be different now. So, i don't have to implement this by myself.
Thanks a lot.
David Toniolo wrote:
Hi @ll,
inspired by some postings about plugins on zfforum.de, i decided to write a plugin manager class handles my plugins by request. This means, e.g. my Plugin_Auth class does not load, when there is a request on a site which does not need an authentication.
I could write much text now about how to implement the plugin manager in your bootstrap and about the many possibilities and options, but i don't. Feel free to copy the source and edit it if you want.
I would be happy, about some feedback and suggestions for improvement.
highlighted source codeAPI and Documentation in one ;)