Changeset 33418
- Timestamp:
- 04/20/12 14:35:14 (1 year ago)
- Files:
-
- plugins/sfDoctrineCreateInPlacePlugin/README (modified) (1 diff)
- plugins/sfDoctrineCreateInPlacePlugin/VERSION (modified) (1 diff)
- plugins/sfDoctrineCreateInPlacePlugin/package.xml (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfDoctrineCreateInPlacePlugin/README
r33416 r33418 2 2 ============================= 3 3 4 Usage: 4 ## Installation ## 5 6 Install plugin: 7 8 symfony plugin:install sfDoctrineCreateInPlacePlugin -s alpha 9 10 11 ## Usage ## 5 12 6 13 First, enable the sfDoctrineCreateInPlace module in the settings.yml: 14 15 all: 16 .settings: 17 ... 18 enabled_modules: [ default, sfDoctrineCreateInPlace ] 7 19 8 all:9 .settings:10 ...11 enabled_modules: [default, sfDoctrineCreateInPlace]12 20 13 21 Then, change your form: 14 22 15 $this->widgetSchema['author_id'] = new sfWidgetFormDoctrineChoiceCreateInPlace(array( 16 'height' => 300, 17 'model' => $this->getRelatedModelName('Author'), 18 'add_empty' => false 19 )); 23 [php] 24 $this->widgetSchema['author_id'] = new sfWidgetFormDoctrineChoiceCreateInPlace(array( 25 'height' => 300, 26 'model' => $this->getRelatedModelName('Author'), 27 'add_empty' => false 28 )); 29 plugins/sfDoctrineCreateInPlacePlugin/VERSION
r33414 r33418 1 0.0. 11 0.0.2 plugins/sfDoctrineCreateInPlacePlugin/package.xml
r33417 r33418 1 <?xml version="1.0" encoding="UTF-8"?> 2 <package packagerversion="1.4.1" version="2.0" 3 xmlns="http://pear.php.net/dtd/package-2.0" 4 xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" 5 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 6 xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 7 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 8 http://pear.php.net/dtd/package-2.0.xsd"> 1 <?xml version="1.0" encoding="utf8"?> 2 <package xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" packagerversion="1.4.1" version="2.0" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd"> 9 3 <name>sfDoctrineCreateInPlacePlugin</name> 10 <channel>p lugins.symfony-project.org</channel>4 <channel>pear.symfony-project.com</channel> 11 5 <summary>A doctrine choice widget.</summary> 12 6 <description>A doctrine choice widget to add choice without leave the form screen.</description> … … 17 11 <active>yes</active> 18 12 </lead> 19 <date>2012-04- 19</date>13 <date>2012-04-20</date> 20 14 <version> 21 <release>0. 1.0</release>22 <api>0. 1.0</api>15 <release>0.0.2</release> 16 <api>0.0.2</api> 23 17 </version> 24 18 <stability> … … 33 27 <dir name="lib"> 34 28 <dir name="widget"> 35 <file name="sfWidgetFormDoctrineChoiceCreateInPlace.class " role="data"/>29 <file name="sfWidgetFormDoctrineChoiceCreateInPlace.class.php" role="data"/> 36 30 </dir> 37 31 </dir> … … 40 34 <dir name="actions"> 41 35 <file role="data" name="actions.class.php" /> 36 </dir> 37 <dir name="templates"> 38 <file role="data" name="createSuccess.php" /> 42 39 </dir> 43 40 </dir>