Fixing content type ordering when content_type is not defined.
[akelos.git] / lib / utils / generators / scaffold / templates / helper.php
blobd03e26a9af355729e747a8d314b3420865741649
1 <?php echo '<?php'?>
4 class <?php echo $helper_name?> extends AkActionViewHelper
5 {
6 function cancel($url = array('action' => 'listing'))
8 return '<input type="button" value="'.$this->_controller->t('Cancel').'" style="width: auto;" onclick="window.location.href = \''.$this->_controller->urlFor($url).'\';" />';
11 function save()
13 return '<input type="submit" value="'.$this->_controller->t('OK').'" class="primary" />';
16 function confirm_delete()
18 return '<input type="submit" value="'.$this->_controller->t('Delete').'" />';
21 function link_to_show(&$record)
23 return $this->_controller->url_helper->link_to($this->_controller->t('Show'), array('action' => 'show', 'id' => $record->getId()));
26 function link_to_edit(&$record)
28 return $this->_controller->url_helper->link_to($this->_controller->t('Edit'), array('action' => 'edit', 'id' => $record->getId()));
31 function link_to_destroy(&$record)
33 return $this->_controller->url_helper->link_to($this->_controller->t('Delete'), array('action' => 'destroy', 'id' => $record->getId()));