name); $table = Inflector::singularize($this->name); $humanName = Inflector::humanize($this->name); $humanSingularName = Inflector::singularize( $humanName ); // var_dump( $data ); ?> "; } else { echo ""; } foreach( $fieldNames as $field=>$value ) { ?> value ?>
Actions
getObject( $otherModelName ); if( is_object($otherModelObject) ) { $displayText = $row[$otherModelName][ $otherModelObject->getDisplayField() ]; } else{ $displayText = $row[$table][$field]; } echo $html->linkTo( $displayText, "/".Inflector::underscore($otherControllerName)."/show/".$row[$table][$field] ); } else { echo $row[$table ][$field]; } ?> linkTo('View',"/".$this->viewPath."/show/{$row[$table]['id']}/")?> linkTo('Edit',"/".$this->viewPath."/edit/{$row[$table]['id']}/")?> linkTo('Delete',"/".$this->viewPath."/destroy/{$row[$table]['id']}/")?>