/home/desid573/public_html/family/pdd/lib/Cake/View/Scaffolds
Edit: /home/desid573/public_html/family/pdd/lib/Cake/View/Scaffolds/view.ctp (6580B)
$_details) {
if ($_field === $_details['foreignKey']) {
$isKey = true;
echo "\t\t- " . Inflector::humanize($_alias) . "
\n";
echo "\t\t- \n\t\t\t";
echo $this->Html->link(
${$singularVar}[$_alias][$_details['displayField']],
array('plugin' => $_details['plugin'], 'controller' => $_details['controller'], 'action' => 'view', ${$singularVar}[$_alias][$_details['primaryKey']])
);
echo "\n\t\t
\n";
break;
}
}
}
if ($isKey !== true) {
echo "\t\t- " . Inflector::humanize($_field) . "
\n";
echo "\t\t- " . h(${$singularVar}[$modelClass][$_field]) . "
\n";
}
}
?>
";
echo $this->Html->link(__d('cake', 'Edit %s', $singularHumanName), array('action' => 'edit', ${$singularVar}[$modelClass][$primaryKey]));
echo " \n";
echo "\t\t- ";
echo $this->Form->postLink(__d('cake', 'Delete %s', $singularHumanName), array('action' => 'delete', ${$singularVar}[$modelClass][$primaryKey]), array(), __d('cake', 'Are you sure you want to delete # %s?', ${$singularVar}[$modelClass][$primaryKey]));
echo "
\n";
echo "\t\t- ";
echo $this->Html->link(__d('cake', 'List %s', $pluralHumanName), array('action' => 'index'));
echo "
\n";
echo "\t\t- ";
echo $this->Html->link(__d('cake', 'New %s', $singularHumanName), array('action' => 'add'));
echo "
\n";
$done = array();
foreach ($associations as $_type => $_data) {
foreach ($_data as $_alias => $_details) {
if ($_details['controller'] != $this->name && !in_array($_details['controller'], $done)) {
echo "\t\t- ";
echo $this->Html->link(
__d('cake', 'List %s', Inflector::humanize($_details['controller'])),
array('plugin' => $_details['plugin'], 'controller' => $_details['controller'], 'action' => 'index')
);
echo "
\n";
echo "\t\t- ";
echo $this->Html->link(
__d('cake', 'New %s', Inflector::humanize(Inflector::underscore($_alias))),
array('plugin' => $_details['plugin'], 'controller' => $_details['controller'], 'action' => 'add')
);
echo "
\n";
$done[] = $_details['controller'];
}
}
}
?>
$_details): ?>
$_details):
$otherSingularVar = Inflector::variable($_alias);
?>