Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as PHP by maro ( 14 years ago )
public function admin_edit($tagId = null) {
try {
$result = $this->Tag->edit($tagId, $this->data);
if ($result === true) {
$this->Session->setFlash(__d('tags', 'Tag saved.', true));
$this->redirect(array('action' => 'index'));
} else {
$this->data = $result;
}
} catch (Exception $e) {
$this->Session->setFlash($e->getMessage());
$this->redirect(array('action' => 'index'));
}
if (empty($this->data)) {
$this->data = $this->Tag->data;
}
}
Revise this Paste
Parent: 47323