formTag('/'.$this->name.'/update');
echo $form->generateFields( $html, $fieldNames );
echo $form->generateSubmitDiv( $html, 'Save' )
?>
name);
echo "- ".$html->linkTo('Delete '.Inflector::humanize($modelName), '/'.$this->viewPath.'/destroy/'.$data[$modelName]['id'])."
";
foreach( $fieldNames as $field=>$value ) {
if( isset( $value['foreignKey'] ) )
{
echo "- ".$html->linkTo( "View ".Inflector::humanize($value['controller']), "/".Inflector::underscore($value['controller'])."/show/".$data[Inflector::singularize($params['controller'])][$field] )."
";
}
}
?>