Actions

$data) { foreach ($data as $alias => $details) { echo "\n\t\t\t
".Inflector::humanize($details['controller'])."
"; echo "\n\t\t\t
    \n"; if ($details['controller'] != $this->name && !in_array($details['controller'], $done)) { echo "\t\t\t\t
  • Html->link(sprintf(__('List %s', true), __('" . Inflector::humanize($details['controller']) . "', true)), array('controller' => '{$details['controller']}', 'action' => 'index')); ?>
  • \n"; echo "\t\t\t\t
  • Html->link(sprintf(__('New %s', true), __('" . Inflector::humanize(Inflector::underscore($alias)) . "', true)), array('controller' => '{$details['controller']}', 'action' => 'add')); ?>
  • \n"; $done[] = $details['controller']; } echo "\t\t\t
\n"; } } ?>

";?>

tableHeaders(array("; foreach($fields as $field) { echo "\$paginator->sort('{$field}'),"; } echo "__('Actions', true),"; echo "));\n"; echo "echo ''.\$tableHeaders.''; ?>\n\n"; //// TABLE ROWS echo "\n"; echo "\t>\n"; foreach ($fields as $field) { $isKey = false; if (!empty($associations['belongsTo'])) { foreach ($associations['belongsTo'] as $alias => $details) { if ($field === $details['foreignKey']) { $isKey = true; echo "\t\t\n"; break; } } } if ($isKey !== true) { echo "\t\t\n"; } } echo "\t\t\n"; echo "\t\n"; echo "\n"; //// TABLE FOOTER echo "'.\$tableHeaders.''; ?>"; ?>
\n\t\t\tHtml->link(\${$singularVar}['{$alias}']['{$details['displayField']}'], array('controller' => '{$details['controller']}', 'action' => 'view', \${$singularVar}['{$alias}']['{$details['primaryKey']}'])); ?>\n\t\t \n"; echo "\t\t\tHtml->link(__('View', true), array('action' => 'view', \${$singularVar}['{$modelClass}']['{$primaryKey}'])); ?>\n"; echo "\t\t\tHtml->link(__('Edit', true), array('action' => 'edit', \${$singularVar}['{$modelClass}']['{$primaryKey}'])); ?>\n"; echo "\t\t\tHtml->link(__('Delete', true), array('action' => 'delete', \${$singularVar}['{$modelClass}']['{$primaryKey}']), null, sprintf(__('Are you sure you want to delete # %s?', true), \${$singularVar}['{$modelClass}']['{$primaryKey}'])); ?>\n"; echo "\t\t

Paginator->counter(array( 'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true) )); ?>";?>

Paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>\n";?> | Paginator->numbers();?>\n"?> | Paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>\n";?>