-- 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/