removed not used $i variable

removed not used $i variable
This commit is contained in:
Andras Kende 2013-08-13 22:06:00 -07:00
parent cb6ea82fea
commit 3f58be260e

View file

@ -94,7 +94,6 @@ if (empty($associations['hasAndBelongsToMany'])) {
$associations['hasAndBelongsToMany'] = array(); $associations['hasAndBelongsToMany'] = array();
} }
$relations = array_merge($associations['hasMany'], $associations['hasAndBelongsToMany']); $relations = array_merge($associations['hasMany'], $associations['hasAndBelongsToMany']);
$i = 0;
foreach ($relations as $alias => $details): foreach ($relations as $alias => $details):
$otherSingularVar = Inflector::variable($alias); $otherSingularVar = Inflector::variable($alias);
$otherPluralHumanName = Inflector::humanize($details['controller']); $otherPluralHumanName = Inflector::humanize($details['controller']);
@ -112,9 +111,7 @@ foreach ($relations as $alias => $details):
<th class="actions"><?php echo "<?php echo __('Actions'); ?>"; ?></th> <th class="actions"><?php echo "<?php echo __('Actions'); ?>"; ?></th>
</tr> </tr>
<?php <?php
echo "\t<?php echo "\t<?php foreach (\${$singularVar}['{$alias}'] as \${$otherSingularVar}): ?>\n";
\$i = 0;
foreach (\${$singularVar}['{$alias}'] as \${$otherSingularVar}): ?>\n";
echo "\t\t<tr>\n"; echo "\t\t<tr>\n";
foreach ($details['fields'] as $field) { foreach ($details['fields'] as $field) {
echo "\t\t\t<td><?php echo \${$otherSingularVar}['{$field}']; ?></td>\n"; echo "\t\t\t<td><?php echo \${$otherSingularVar}['{$field}']; ?></td>\n";