Author: dalexandre
Date: 2010-01-27 10:36:46 +0100 (Wed, 27 Jan 2010)
New Revision: 27227

Modified:
   plugins/daYamlEditorPlugin/trunk/README
Log:
[daYamlEditorPlugin] Improve and correct the README

Modified: plugins/daYamlEditorPlugin/trunk/README
===================================================================
--- plugins/daYamlEditorPlugin/trunk/README     2010-01-27 03:15:32 UTC (rev 
27226)
+++ plugins/daYamlEditorPlugin/trunk/README     2010-01-27 09:36:46 UTC (rev 
27227)
@@ -16,8 +16,11 @@
 
   * Install the plugin (download the package, or use a `svn:externals`)
 
+        http://svn.symfony-project.com/plugins/daYamlEditorPlugin/trunk/
+
   * Active the plugin in your ProjectConfiguration
 
+        [php]
         $this->enablePlugins('aNicePlugin', 'daYamlEditorPlugin');
 
   * Enable the `daYamlEditor` module in your `settings.yml`
@@ -75,12 +78,12 @@
 
 ## Create multiple forms
 
-  * If you want to separate your fields in multiple forms, you just have to 
create a new form and say to it witch block to use.
+  * If you want to separate your fields in multiple forms, you just have to 
create a new form and say to it witch config block to use.
 
         [php]
         class myYamlEditorForm extends daYamlEditorForm
         {
-          private $daYamlEditorName = "myaboutconfigform";
+          protected $daYamlEditorName = "myaboutconfigform";
 
           public function configure()
           {
@@ -89,7 +92,7 @@
           }
         }
 
-    If `$daYamlEditorName` is null, all the blocks are used.
+    If `$daYamlEditorName` is null, all the blocks are used (it's the default 
behavior of daYamlEditorForm).
 
   * The next step is to build your form action :
 
@@ -113,6 +116,8 @@
           }
         }
 
+    You can also override daYamlEditorActions, it's up to you.
+
 ## Tips
 
   * ### Clear the cache after updating a config file
@@ -125,6 +130,12 @@
 
     (the first param of the sfEvent object will be the name of the block, or 
null). Read the [symfony documentation to do 
it](http://www.symfony-project.org/book/1_2/12-Caching#chapter_12_sub_clearing_the_entire_cache).
 
+    The quick and dirty way for clearing the cache :
+
+        [php]
+        sfToolkit::clearDirectory( 
sfConfig::get('sf_cache_dir').'/frontend/prod/template' );
+        sfToolkit::clearDirectory( 
sfConfig::get('sf_cache_dir').'/frontend/prod/config' );
+
   * ### Remove the "Doctrine" style on my form
 
     By default, the form markup is close to the Doctrine Admin Generator one, 
thanks to the `sfWidgetFormSchemaFormatterDaYamlEditor` formatter. That's allow 
you to have consistant backend style. To remove this behavior, you can call 
this method :

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.

Reply via email to