<?xml version="1.0" encoding="UTF-8"?>
    <!-- EN-Revision: 24249 -->
    <!-- Reviewed: no -->
<sect2 id="zend.application.core-functionality.bootstrap-bootstrap">
    <title>Zend_Application_Bootstrap_Bootstrap</title>

    <para>
        <classname>Zend_Application_Bootstrap_Bootstrap</classname>
        es una implementación concreta
        de
        <link linkend="zend.application.core-functionality.bootstrap-bootstrapabstract">
        Zend_Application_Bootstrap_BootstrapAbstract
        </link>
        . Su principal característica es que
        registra el
        <link linkend="zend.application.available-resources.frontcontroller">recurso
            Front Controller</link>
        , y que el método
        <methodname>run()</methodname>
        primero
        comprueba esté definido un módulo por defecto y luego despacha el front controller.
    </para>

    <para>En muchos casos, usted quisiera extender esta clase por sus necesidades de bootstrapping,
        o simplemente utilizar esta clase y proporcionar una lista de los plugins de recursos a
        utilizar.</para>

    <sect3 id="zend.application.core-functionality.bootstrap-bootstrap.autoloading">
        <title>Enabling Application Autoloading</title>

        <para>
            Additionally, this bootstrap implementation provides the ability to specify the
            "namespace" or class prefix for resources located in its tree, which will enable
            autoloading of various application resources; essentially, it instantiates a
            <link linkend="zend.loader.autoloader-resource.module">
            Zend_Application_Module_Autoloader</link>
            object, providing the requested namespace and the bootstrap's directory as arguments.
            You may enable this functionality by providing a namespace to the "appnamespace"
            configuration option. As an
            <acronym>INI</acronym>
            Ejemplo:
        </para>

        <programlisting language="ini"><![CDATA[
appnamespace = "Application"
]]></programlisting>

        <para>
            O en
            <acronym>XML</acronym>
            :
        </para>

        <programlisting language="xml"><![CDATA[
<appnamespace>Application</appnamespace>
]]></programlisting>

        <para>
            By default,
            <classname>Zend_Tool</classname>
            will enable this option with the value
            "Application".
        </para>

        <para>
            Alternately, you can simply define the
            <varname>$_appNamespace</varname>
            property of your
            bootstrap class with the appropriate value:
        </para>

        <programlisting language="php"><![CDATA[
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
    protected $_appNamespace = 'Application';
}
]]></programlisting>
    </sect3>
</sect2>
