Development

Changeset 1228

You must first sign up to be able to contribute.

Changeset 1228

Show
Ignore:
Timestamp:
04/19/06 13:06:42 (2 years ago)
Author:
fabien
Message:

fixed lack of semicolon in autogenerated template code triggers error notices in Eclipse (closes #429)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/data/data/exception.php

    r1059 r1228  
    3535  <?php if ($error_reference): ?> 
    3636    <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; ?> 
    3838  <h2>stack trace</h2> 
    3939  <ul><li><?php echo implode('</li><li>', $traces) ?></li></ul> 
  • trunk/data/data/exception.txt

    r1038 r1228  
    66  <?php echo $line ?> 
    77 
    8 <?php endforeach ?> 
    9 <?php endif ?> 
     8<?php endforeach; ?> 
     9<?php endif; ?> 
    1010[symfony]     v. <?php echo sfConfig::get('sf_version') ?> (symfony-project.com) 
    1111[PHP]         v. <?php echo PHP_VERSION ?>  
  • trunk/data/generator/sfPropelAdmin/default/template/actions/actions.class.php

    r1139 r1228  
    9797      } 
    9898 
    99 <?php endif ?> 
    100 <?php endforeach ?> 
    101 <?php endforeach ?> 
     99<?php endif; ?> 
     100<?php endforeach; ?> 
     101<?php endforeach; ?> 
    102102    return $this->redirect('<?php echo $this->getModuleName() ?>/list'); 
    103103  } 
     
    125125    if ($this->getUser()->hasCredential(<?php echo $credentials ?>)) 
    126126    { 
    127 <?php endif ?> 
     127<?php endif; ?> 
    128128<?php if ($input_type == 'admin_input_upload_tag'): ?> 
    129129<?php $upload_dir = $this->getParameterValue('edit.fields.'.$column->getName().'.upload_dir') ?> 
     
    143143    if (isset($<?php echo $this->getSingularName() ?>['<?php echo $name ?>'])) 
    144144    { 
    145 <?php endif ?> 
     145<?php endif; ?> 
    146146<?php if ($input_type == 'admin_input_upload_tag'): ?> 
    147147      $fileName = md5($this->getRequest()->getFileName('<?php echo $this->getSingularName() ?>[<?php echo $name ?>]').time()); 
     
    167167<?php else: ?> 
    168168      $this-><?php echo $this->getSingularName() ?>->set<?php echo $column->getPhpName() ?>($<?php echo $this->getSingularName() ?>['<?php echo $name ?>']); 
    169 <?php endif ?> 
     169<?php endif; ?> 
    170170    } 
    171171<?php if ($credentials): ?> 
    172172      } 
    173 <?php endif ?> 
    174 <?php endforeach ?> 
    175 <?php endforeach ?> 
     173<?php endif; ?> 
     174<?php endforeach; ?> 
     175<?php endforeach; ?> 
    176176  } 
    177177 
     
    200200      $this->getUser()->getAttributeHolder()->add($this->getRequestParameter('filters'), 'sf_admin/<?php echo $this->getSingularName() ?>/filters'); 
    201201    } 
    202 <?php endif ?> 
     202<?php endif; ?> 
    203203  } 
    204204 
     
    223223<?php else: ?> 
    224224      $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; ?> 
    229229  } 
    230230 
  • trunk/data/generator/sfPropelCrud/default/template/actions/actions.class.php

    r1139 r1228  
    6666<?php else: ?> 
    6767    $<?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; ?> 
    7070 
    7171    $<?php echo $this->getSingularName() ?>->save(); 
  • trunk/data/generator/sfPropelCrud/default/template/templates/editSuccess.php

    r500 r1228  
    55<?php foreach ($this->getPrimaryKey() as $pk): ?> 
    66[?php echo object_input_hidden_tag($<?php echo $this->getSingularName() ?>, 'get<?php echo $pk->getPhpName() ?>') ?] 
    7 <?php endforeach ?> 
     7<?php endforeach; ?> 
    88 
    99<table> 
     
    1313<?php if ($name == 'CREATED_AT' || $name == 'UPDATED_AT') continue ?> 
    1414<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> 
    1616  <td>[?php echo <?php echo $this->getColumnEditTag($column) ?> ?]</td> 
    1717</tr> 
    18 <?php endforeach ?> 
     18<?php endforeach; ?> 
    1919</tbody> 
    2020</table> 
     
    2626[?php else: ?] 
    2727  &nbsp;[?php echo link_to('cancel', '<?php echo $this->getModuleName() ?>/list') ?] 
    28 [?php endif ?] 
     28[?php endif; ?] 
    2929</form> 
  • trunk/data/generator/sfPropelCrud/default/template/templates/listSuccess.php

    r1071 r1228  
    66<?php foreach ($this->getTableMap()->getColumns() as $column): ?> 
    77  <th><?php echo sfInflector::humanize(sfInflector::underscore($column->getPhpName())) ?></th> 
    8 <?php endforeach ?> 
     8<?php endforeach; ?> 
    99</tr> 
    1010</thead> 
     
    1717  <?php else: ?> 
    1818  <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; ?> 
    2121</tr> 
    22 [?php endforeach ?] 
     22[?php endforeach; ?] 
    2323</tbody> 
    2424</table> 
  • trunk/data/generator/sfPropelCrud/default/template/templates/showSuccess.php

    r500 r1228  
    66<td>[?= $<?php echo $this->getSingularName() ?>->get<?php echo $column->getPhpName() ?>() ?]</td> 
    77</tr> 
    8 <?php endforeach ?> 
     8<?php endforeach; ?> 
    99</tbody> 
    1010</table> 
  • trunk/lib/generator/sfPropelAdminGenerator.class.php

    r1117 r1228  
    194194    if ($only_if_id) 
    195195    { 
    196       $html .= '[?php endif ?]'."\n"; 
     196      $html .= '[?php endif; ?]'."\n"; 
    197197    } 
    198198 
     
    295295[?php if (\$sf_user->hasCredential($credentials)): ?] 
    296296$content 
    297 [?php endif ?] 
     297[?php endif; ?] 
    298298EOF; 
    299299    } 
  • trunk/lib/helper/CacheHelper.php

    r500 r1228  
    2525 
    2626  <?php cache_save() ?> 
    27 <?php endif ?> 
     27<?php endif; ?> 
    2828 
    2929*/