formTag('/'.Inflector::underscore($this->name).'/update');
echo $form->generateFields( $html, $fieldNames );
echo $form->generateSubmitDiv( $html, 'Save' )
?>
name);
$modelKey = Inflector::underscore($modelName);
echo "- ".$html->linkTo('Delete '.Inflector::humanize($modelName), '/'.$this->viewPath.'/destroy/'.$data[$modelKey]['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] )."
";
}
}
?>