Changeset 1268
- Timestamp:
- 04/25/06 11:10:59 (7 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/data/generator/sfPropelAdmin/default/template/actions/actions.class.php
r1256 r1268 61 61 62 62 $this->update<?php echo $this->getClassName() ?>FromRequest(); 63 $this-><?php echo $this->getSingularName() ?>->save(); 63 64 $this->save<?php echo $this->getClassName() ?>($this-><?php echo $this->getSingularName() ?>); 64 65 65 66 $this->setFlash('notice', 'Your modifications have been saved'); … … 88 89 $this->forward404Unless($this-><?php echo $this->getSingularName() ?>); 89 90 90 $this-> <?php echo $this->getSingularName() ?>->delete();91 $this->delete<?php echo $this->getClassName() ?>($this-><?php echo $this->getSingularName() ?>); 91 92 92 93 <?php foreach ($this->getColumnCategories('edit.display') as $category): ?> … … 114 115 115 116 return sfView::SUCCESS; 117 } 118 119 protected function save<?php echo $this->getClassName() ?>($<?php echo $this->getSingularName() ?>) 120 { 121 $<?php echo $this->getSingularName() ?>->save(); 122 } 123 124 protected function delete<?php echo $this->getClassName() ?>($<?php echo $this->getSingularName() ?>) 125 { 126 $<?php echo $this->getSingularName() ?>->delete(); 116 127 } 117 128