mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
removed not used $i variable
removed not used $i variable
This commit is contained in:
parent
cb6ea82fea
commit
3f58be260e
1 changed files with 1 additions and 4 deletions
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue