Created
May 16, 2013 21:30
-
-
Save smolak/5595258 to your computer and use it in GitHub Desktop.
ZFCRUD user delete form
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Admin_Form_Delete extends Zend_Form | |
{ | |
public function init() | |
{ | |
$cancel = new Zend_Form_Element_Button('cancel'); | |
$cancel->setLabel('Hold your horses, do not delete this fella!') | |
->setAttrib('onClick', | |
'window.location.href = "/path/to/return/to";') | |
->setIgnore(true); | |
$this->addElement($cancel); | |
$submit = new Zend_Form_Element_Submit('submit'); | |
$submit->setLabel('You will be missed ;)') | |
->setIgnore(true); | |
$this->addElement($submit); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment