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