$_details) { if ($_field === $_details['foreignKey']) { $isKey = true; echo "\t\t" . Inflector::humanize($_alias) . "\n"; echo "\t\t\n\t\t\t" . $this->Html->link(${$singularVar}[$_alias][$_details['displayField']], array('controller' => $_details['controller'], 'action' => 'view', ${$singularVar}[$_alias][$_details['primaryKey']])) . "\n\t\t \n"; break; } } } if ($isKey !== true) { echo "\t\t" . Inflector::humanize($_field) . "\n"; echo "\t\t" . h(${$singularVar}[$modelClass][$_field]) . " \n"; } } ?>

$_details): ?> $_details): $otherSingularVar = Inflector::variable($_alias); ?>