Changeset 1228
- Timestamp:
- 04/19/06 13:06:42 (2 years ago)
- Files:
-
- trunk/data/data/exception.php (modified) (1 diff)
- trunk/data/data/exception.txt (modified) (1 diff)
- trunk/data/generator/sfPropelAdmin/default/template/actions/actions.class.php (modified) (6 diffs)
- trunk/data/generator/sfPropelCrud/default/template/actions/actions.class.php (modified) (1 diff)
- trunk/data/generator/sfPropelCrud/default/template/templates/editSuccess.php (modified) (3 diffs)
- trunk/data/generator/sfPropelCrud/default/template/templates/listSuccess.php (modified) (2 diffs)
- trunk/data/generator/sfPropelCrud/default/template/templates/showSuccess.php (modified) (1 diff)
- trunk/lib/generator/sfPropelAdminGenerator.class.php (modified) (2 diffs)
- trunk/lib/helper/CacheHelper.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/data/data/exception.php
r1059 r1228 35 35 <?php if ($error_reference): ?> 36 36 <p><a href='http://www.symfony-project.com/errors/<?php echo $error_reference ?>'>learn more about this issue</a></p> 37 <?php endif ?>37 <?php endif; ?> 38 38 <h2>stack trace</h2> 39 39 <ul><li><?php echo implode('</li><li>', $traces) ?></li></ul> trunk/data/data/exception.txt
r1038 r1228 6 6 <?php echo $line ?> 7 7 8 <?php endforeach ?>9 <?php endif ?>8 <?php endforeach; ?> 9 <?php endif; ?> 10 10 [symfony] v. <?php echo sfConfig::get('sf_version') ?> (symfony-project.com) 11 11 [PHP] v. <?php echo PHP_VERSION ?> trunk/data/generator/sfPropelAdmin/default/template/actions/actions.class.php
r1139 r1228 97 97 } 98 98 99 <?php endif ?>100 <?php endforeach ?>101 <?php endforeach ?>99 <?php endif; ?> 100 <?php endforeach; ?> 101 <?php endforeach; ?> 102 102 return $this->redirect('<?php echo $this->getModuleName() ?>/list'); 103 103 } … … 125 125 if ($this->getUser()->hasCredential(<?php echo $credentials ?>)) 126 126 { 127 <?php endif ?>127 <?php endif; ?> 128 128 <?php if ($input_type == 'admin_input_upload_tag'): ?> 129 129 <?php $upload_dir = $this->getParameterValue('edit.fields.'.$column->getName().'.upload_dir') ?> … … 143 143 if (isset($<?php echo $this->getSingularName() ?>['<?php echo $name ?>'])) 144 144 { 145 <?php endif ?>145 <?php endif; ?> 146 146 <?php if ($input_type == 'admin_input_upload_tag'): ?> 147 147 $fileName = md5($this->getRequest()->getFileName('<?php echo $this->getSingularName() ?>[<?php echo $name ?>]').time()); … … 167 167 <?php else: ?> 168 168 $this-><?php echo $this->getSingularName() ?>->set<?php echo $column->getPhpName() ?>($<?php echo $this->getSingularName() ?>['<?php echo $name ?>']); 169 <?php endif ?>169 <?php endif; ?> 170 170 } 171 171 <?php if ($credentials): ?> 172 172 } 173 <?php endif ?>174 <?php endforeach ?>175 <?php endforeach ?>173 <?php endif; ?> 174 <?php endforeach; ?> 175 <?php endforeach; ?> 176 176 } 177 177 … … 200 200 $this->getUser()->getAttributeHolder()->add($this->getRequestParameter('filters'), 'sf_admin/<?php echo $this->getSingularName() ?>/filters'); 201 201 } 202 <?php endif ?>202 <?php endif; ?> 203 203 } 204 204 … … 223 223 <?php else: ?> 224 224 $c->add(<?php echo $this->getPeerClassName() ?>::<?php echo strtoupper($column->getName()) ?>, $this->filters['<?php echo $column->getName() ?>']); 225 <?php endif ?>226 } 227 <?php endforeach ?>228 <?php endif ?>225 <?php endif; ?> 226 } 227 <?php endforeach; ?> 228 <?php endif; ?> 229 229 } 230 230 trunk/data/generator/sfPropelCrud/default/template/actions/actions.class.php
r1139 r1228 66 66 <?php else: ?> 67 67 $<?php echo $this->getSingularName() ?>->set<?php echo $column->getPhpName() ?>($this->getRequestParameter('<?php echo $name ?>')); 68 <?php endif ?>69 <?php endforeach ?>68 <?php endif; ?> 69 <?php endforeach; ?> 70 70 71 71 $<?php echo $this->getSingularName() ?>->save(); trunk/data/generator/sfPropelCrud/default/template/templates/editSuccess.php
r500 r1228 5 5 <?php foreach ($this->getPrimaryKey() as $pk): ?> 6 6 [?php echo object_input_hidden_tag($<?php echo $this->getSingularName() ?>, 'get<?php echo $pk->getPhpName() ?>') ?] 7 <?php endforeach ?>7 <?php endforeach; ?> 8 8 9 9 <table> … … 13 13 <?php if ($name == 'CREATED_AT' || $name == 'UPDATED_AT') continue ?> 14 14 <tr> 15 <th><?php echo sfInflector::humanize(sfInflector::underscore($column->getPhpName())) ?><?php if ($column->isNotNull()): ?>*<?php endif ?>:</th>15 <th><?php echo sfInflector::humanize(sfInflector::underscore($column->getPhpName())) ?><?php if ($column->isNotNull()): ?>*<?php endif; ?>:</th> 16 16 <td>[?php echo <?php echo $this->getColumnEditTag($column) ?> ?]</td> 17 17 </tr> 18 <?php endforeach ?>18 <?php endforeach; ?> 19 19 </tbody> 20 20 </table> … … 26 26 [?php else: ?] 27 27 [?php echo link_to('cancel', '<?php echo $this->getModuleName() ?>/list') ?] 28 [?php endif ?]28 [?php endif; ?] 29 29 </form> trunk/data/generator/sfPropelCrud/default/template/templates/listSuccess.php
r1071 r1228 6 6 <?php foreach ($this->getTableMap()->getColumns() as $column): ?> 7 7 <th><?php echo sfInflector::humanize(sfInflector::underscore($column->getPhpName())) ?></th> 8 <?php endforeach ?>8 <?php endforeach; ?> 9 9 </tr> 10 10 </thead> … … 17 17 <?php else: ?> 18 18 <td>[?php echo $<?php echo $this->getSingularName() ?>->get<?php echo $column->getPhpName() ?>() ?]</td> 19 <?php endif ?>20 <?php endforeach ?>19 <?php endif; ?> 20 <?php endforeach; ?> 21 21 </tr> 22 [?php endforeach ?]22 [?php endforeach; ?] 23 23 </tbody> 24 24 </table> trunk/data/generator/sfPropelCrud/default/template/templates/showSuccess.php
r500 r1228 6 6 <td>[?= $<?php echo $this->getSingularName() ?>->get<?php echo $column->getPhpName() ?>() ?]</td> 7 7 </tr> 8 <?php endforeach ?>8 <?php endforeach; ?> 9 9 </tbody> 10 10 </table> trunk/lib/generator/sfPropelAdminGenerator.class.php
r1117 r1228 194 194 if ($only_if_id) 195 195 { 196 $html .= '[?php endif ?]'."\n";196 $html .= '[?php endif; ?]'."\n"; 197 197 } 198 198 … … 295 295 [?php if (\$sf_user->hasCredential($credentials)): ?] 296 296 $content 297 [?php endif ?]297 [?php endif; ?] 298 298 EOF; 299 299 } trunk/lib/helper/CacheHelper.php
r500 r1228 25 25 26 26 <?php cache_save() ?> 27 <?php endif ?>27 <?php endif; ?> 28 28 29 29 */