-- wenbert <[email protected]> wrote
(on Wednesday, 03 June 2009, 07:59 PM -0700):
> Thank you so much for this:
> 
>     autoloaderNamespaces[] = "Wenbert_"
> 
> this is what I was looking for. Now, I did not have to touch my Bootstrap
> file and I just left it the way it was created by the Zend_Application
> component.
> 
> I was looking for something like this and was not able to find this on the
> documentation if the zend.com site. Is this documented?

The autoloaderNamespaces configuration key is definitely documented in
the Zend_Application docs, and autoloader namespace registration is
detailed in the Zend_Loader_Autoloader docs.


> Matthew Weier O'Phinney-3 wrote:
> > 
> > -- iceangel89 <[email protected]> wrote
> > (on Wednesday, 03 June 2009, 05:44 AM -0700):
> >> i wonder if autoloading can be done inside application.ini. or can all
> >> things
> >> that can be configured (without any logic processing of course) inside
> >> bootstrap.php be converted to an application.ini equivalent? so that we
> >> dont
> >> need to configure somethings in application.ini some in bootstrap.php?
> > 
> > Autoloading is enabled by default with Zend_Application already. What
> > classes may be autoloaded depends on your filesystem layout and naming
> > conventions, as well as the include_path that has been defined.
> > Zend_Application can add paths to the include_path already, and can also
> > be used to specify autoloader namespaces. In the previous example, the
> > following INI snippet would load that user's custom classes:
> > 
> >     autoloaderNamespaces[] = "Wenbert_"
> > 
> > and that's all that is needed. This configuration happens *prior* to the
> > application bootstrap (typically your Bootstrap class in
> > application/Bootstrap.php), so you can be assured everything is setup
> > correctly.
> > 
> > -- 
> > Matthew Weier O'Phinney
> > Project Lead            | [email protected]
> > Zend Framework          | http://framework.zend.com/
> > 
> > 
> 
> 
> -----
> http://blog.ekini.net
> -- 
> View this message in context: 
> http://www.nabble.com/set-plugin-directory-in-application.ini-tp23848667p23863057.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
> 

-- 
Matthew Weier O'Phinney
Project Lead            | [email protected]
Zend Framework          | http://framework.zend.com/

Reply via email to