Explorar o código

ZF-6659: Add docs about specifying modules resource in configuration

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@17719 44c647ce-9c0f-0410-b52a-842ac1e357ba
matthew %!s(int64=16) %!d(string=hai) anos
pai
achega
4d592ae81f

+ 35 - 0
documentation/manual/en/module_specs/Zend_Application-AvailableResources-Modules.xml

@@ -17,6 +17,41 @@
         module, using the module name and directory to initialize it.
     </para>
 
+    <para>
+        Since the Modules resource does not take any arguments by default, in order to enable it 
+        via configuration, you need to create it as an empty array. In INI style configuration, 
+        this looks like:
+    </para>
+
+    <programlisting language="ini"><![CDATA[
+resources.modules[] = 
+]]></programlisting>
+
+    <para>
+        In XML style configuration, this looks like:
+    </para>
+
+    <programlisting language="xml"><![CDATA[
+<resources>
+    <modules>
+        <!-- Placeholder to ensure an array is created
+        <placeholder />
+    </modules>
+</resources>
+]]></programlisting>
+    
+    <para>
+        Using a standard PHP array, simply create it as an empty array:
+    </para>
+
+    <programlisting language="php"><![CDATA[
+$options = array(
+    'resources' => array(
+        'modules' => array(),
+    ),
+);
+]]></programlisting>
+
     <note>
         <title>Front Controller Resource Dependency</title>