* Copyright (c) 2005, CakePHP Authors/Developers * * Author(s): Michal Tatarynowicz aka Pies * Larry E. Masters aka PhpNut * Kamil Dzielinski aka Brego * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @filesource * @author CakePHP Authors/Developers * @copyright Copyright (c) 2005, CakePHP Authors/Developers * @link https://trac.cakephp.org/wiki/Authors Authors/Developers * @package cake * @subpackage cake.cake.libs.controller.templates.scaffolds * @since CakePHP v 0.10.0.1076 * @version $Revision$ * @modifiedby $LastChangedBy$ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ $modelName = Inflector::singularize($this->name); $modelKey = $modelName; ?>

Edit

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