If you're using Zend_Loader_Autoloader you'll need to add the "Manager"
namespace in order for those classes to be autoloaded (or you can enable the
fallback autoloader).

If you want to enforce that those classes are only used by the "manager"
module, then you should make sure the namespace is added only when the
manager module is being dispatched. You can use a front controller plugin
for this.

However, I usually only place library-code in the library folder -- that is,
code that can be reused regardless of the module. If it's module-specific
code, you can place it in the "models" folder of that module, or if it's a
service you place it in the "services" folder.

--
Hector


On Thu, Jun 3, 2010 at 10:51 AM, Meroe Kush <[email protected]> wrote:

>  Howdy folks.
>
>
>
> I have a modular app and I'm wanting to create a library for the "manager"
> module.
>
>
>
>  I only want this library available to the manager module and I'm curious
> about how I go about making it available.
>
>
>
>  My structure is as follows -> http://pastie.org/990784
>
>
>
> The library would be in application/modules/manager/library and has the
> following content thus far
>
>
>
> <?php
>
> class Manager_Common  *{*
>
>
>
>
>
>     public function __construct() *{*
>
>
>
>     *}*
>
>
>
> *}***
>
> * *
>
> *I'm attempting to call via:*
>
> * *
>
> $this->commonLIB = new Manager_Common();
>

Reply via email to