Author: annis Date: 2010-02-11 17:17:52 +0100 (Thu, 11 Feb 2010) New Revision: 27902
Modified: plugins/ahDoctrineEasyEmbeddedRelationsPlugin/trunk/README plugins/ahDoctrineEasyEmbeddedRelationsPlugin/trunk/package.xml Log: [ahDoctrineEasyEmbeddedRelationsPlugin] made a few corrections to the README Modified: plugins/ahDoctrineEasyEmbeddedRelationsPlugin/trunk/README =================================================================== --- plugins/ahDoctrineEasyEmbeddedRelationsPlugin/trunk/README 2010-02-11 16:15:16 UTC (rev 27901) +++ plugins/ahDoctrineEasyEmbeddedRelationsPlugin/trunk/README 2010-02-11 16:17:52 UTC (rev 27902) @@ -1,4 +1,4 @@ -# ahDoctrineEasyEmbeddedRelations plugin (for symfony 1.3) # +# ahDoctrineEasyEmbeddedRelations plugin # The `ahDoctrineEasyEmbeddedRelationsPlugin` is a symfony plugin that provides a Doctrine base form class to allow easy and more powerful embedding of forms. @@ -12,7 +12,8 @@ * Install the plugin (via a Subversion checkout) - svn co http://svn.symfony-project.com/plugins/ahDoctrineEasyEmbeddedRelationsPlugin/trunk plugins/ahDoctrineEasyEmbeddedRelationsPlugin + svn co http://svn.symfony-project.com/plugins/ahDoctrineEasyEmbeddedRelationsPlugin/trunk + plugins/ahDoctrineEasyEmbeddedRelationsPlugin * Activate the plugin in `config/ProjectConfiguration.class.php` @@ -29,7 +30,7 @@ } } - * Change the parent class in `lib/form/doctrine/BaseFormDoctrine.class.php` + * Change the parent class in `lib/form/doctrine/BaseFormDoctrine.class.php` to `ahBaseFormDoctrine ` [php] abstract class BaseFormDoctrine extends ahBaseFormDoctrine @@ -75,7 +76,7 @@ 'newFormClassArgs' => array(array('sf_user' => $this->getOption('sf_user'))), 'displayEmptyRelations' => false, 'formClass' => 'ahIntranetSubversionRepositoryEmbeddedForm', - 'formClassArgs' => array(array('ah_add_delete_checkbox' => false, 'another_form_option') => ...)) + 'formClassArgs' => array(array('ah_add_delete_checkbox' => false, 'another_form_option' => ...)) ), '...' => array( ... @@ -168,7 +169,7 @@ } This works because we're calling the plugin's event handler method. - This either returns the form so it added the delete checkbox and the validator and you can act on that or false. Neat and tidy. :) + This either returns the form so it added the delete checkbox and the validator and you can act on that, or it returns false and you don't act on that. Neat and tidy. :) * `displayEmptyRelations` (boolean, not required): set this to true (false is the default) if you want to check for existing related objects yourself. This can be done in the form template and is useful if you want to let the user know that 'There are no related repositories yet.'. The default is just not displaying anything in this case, which works for me. :) Modified: plugins/ahDoctrineEasyEmbeddedRelationsPlugin/trunk/package.xml =================================================================== --- plugins/ahDoctrineEasyEmbeddedRelationsPlugin/trunk/package.xml 2010-02-11 16:15:16 UTC (rev 27901) +++ plugins/ahDoctrineEasyEmbeddedRelationsPlugin/trunk/package.xml 2010-02-11 16:17:52 UTC (rev 27902) @@ -104,6 +104,7 @@ <notes> - fixed a few bugs, so passing options to the embedded forms actually works. - not necessary anymore to create a dedicated form to add the delete checkboxes, this is now handled by symfony's event dispatcher and the form.post_configure event. :) + - updated the README </notes> </release> </changelog> -- 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.
