1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- EN-Revision: 19689 -->
4 <sect2 id="zend.application.core-functionality.bootstrap-bootstrap">
5 <title>Zend_Application_Bootstrap_Bootstrap</title>
8 <classname>Zend_Application_Bootstrap_Bootstrap</classname>
9 es una implementación concreta
11 <link linkend="zend.application.core-functionality.bootstrap-bootstrapabstract">
12 Zend_Application_Bootstrap_BootstrapAbstract
14 . Su principal característica es que
16 <link linkend="zend.application.available-resources.frontcontroller">recurso
17 Front Controller</link>
19 <methodname>run()</methodname>
21 comprueba esté definido un módulo por defecto y luego despacha el front controller.
24 <para>En muchos casos, usted quisiera extender esta clase por sus necesidades de bootstrapping,
25 o simplemente utilizar esta clase y proporcionar una lista de los plugins de recursos a
28 <sect3 id="zend.application.core-functionality.bootstrap-bootstrap.autoloading">
29 <title>Enabling Application Autoloading</title>
32 Additionally, this bootstrap implementation provides the ability to specify the
33 "namespace" or class prefix for resources located in its tree, which will enable
34 autoloading of various application resources; essentially, it instantiates a
35 <link linkend="zend.loader.autoloader-resource.module">
36 Zend_Application_Module_Autoloader</link>
37 object, providing the requested namespace and the bootstrap's directory as arguments.
38 You may enable this functionality by providing a namespace to the "appnamespace"
39 configuration option. As an
40 <acronym>INI</acronym>
44 <programlisting language="ini"><![CDATA[
45 appnamespace = "Application"
50 <acronym>XML</acronym>
54 <programlisting language="xml"><![CDATA[
55 <appnamespace>Application</appnamespace>
60 <classname>Zend_Tool</classname>
61 will enable this option with the value
66 Alternately, you can simply define the
67 <varname>$_appNamespace</varname>
69 bootstrap class with the appropriate value:
72 <programlisting language="php"><![CDATA[
73 class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
75 protected $_appNamespace = 'Application';