editDealLink
editDealLink($id, $options = array())
Description:
Returns HTML->link that opens Deal for editing.
Options:
//
$defaults = array(
'escape' => false
, 'link_content' => 'View Deal'
,
);
Example:
//
$editDealLink = $this->Deals->editDealLink($id, $options = array());
//
echo $editDealLink; // produces View Deal
public function editDealLink($id = null, $options = array()) {
//
if (!$id) {
//
return '';
}
//
$defaults = array(
'escape' => false
, 'link_content' => 'View Deal'
,
);
//
$options = am($defaults, $options);
//
$linkContent = $options['link_content'];
//
unset($options['link_content']);
//
return $this->Html->link(
$linkContent
, array(
'plugin' => 'deals'
, 'controller' => 'deals'
, 'action' => 'edit'
, 'dashboard' => true
, $id
,
)
, $options
);
}