[Catalyst-commits] r13006 - trunk/Catalyst-Plugin-ConfigLoader/lib/Catalyst/Plugin/ConfigLoader

zarquon at dev.catalyst.perl.org zarquon at dev.catalyst.perl.org
Thu Mar 4 10:07:43 GMT 2010


Author: zarquon
Date: 2010-03-04 10:07:43 +0000 (Thu, 04 Mar 2010)
New Revision: 13006

Modified:
   trunk/Catalyst-Plugin-ConfigLoader/lib/Catalyst/Plugin/ConfigLoader/Manual.pod
Log:
update xml entry to be more complete and useful, thanks teejay

Modified: trunk/Catalyst-Plugin-ConfigLoader/lib/Catalyst/Plugin/ConfigLoader/Manual.pod
===================================================================
--- trunk/Catalyst-Plugin-ConfigLoader/lib/Catalyst/Plugin/ConfigLoader/Manual.pod	2010-03-04 04:20:39 UTC (rev 13005)
+++ trunk/Catalyst-Plugin-ConfigLoader/lib/Catalyst/Plugin/ConfigLoader/Manual.pod	2010-03-04 10:07:43 UTC (rev 13006)
@@ -125,16 +125,30 @@
 
 =head3 Example Config
 
-    <config>
-        <name>TestApp</name>
-        <component name="Controller::Foo">
-            <foo>bar</foo>
+ <config>
+        <name>MyApp::CMS</name>
+        <paths>
+          <upload_dir>/var/www/docs/myapp-cms/uploads</upload_dir>
+        </paths>
+        <model name="DB">
+          <connect_info>dbi:mysql:cmsdb</connect_info>
+          <connect_info>user</connect_info>
+          <connect_info>password</connect_info>
+        </model>
+        <component name="View::TT">
+          <INCLUDE_PATH>/var/www/docs/myapp-cms/templates</INCLUDE_PATH>
+          <ENCODING>UTF-8</ENCODING>
+          <TRIM>1</TRIM>
+          <PRE_CHOMP>2</PRE_CHOMP>
+          <POST_CHOMP>2</POST_CHOMP>
         </component>
-        <model name="Baz">
-            <qux>xyzzy</qux>
-        </model>
-    </config>
 
+ </config>
+
+Note that the name attribute for the C<model> tag should be the relative
+namespace of the Catalyst model, not the absolute one.  That is for
+C<MyApp::Model::Something> the C<name> attribute should be C<Something>.
+
 =head2 YAML
 
 =head3 Extensions




More information about the Catalyst-commits mailing list