Exemplo n.º 1
0
 /**
  * create the form to delete a controller from the database
  *
  * @param Admin_Model_DbRow_Controller $controller
  * @access public
  */
 public function __construct(Admin_Model_DbRow_Controller $controller)
 {
     parent::__construct($controller);
     $this->addElements(array(new Zend_Form_Element_Checkbox('chkdelete', array('required' => true, 'label' => 'Really delete? ', 'order' => 6)), new Zend_Form_Element_Hidden('id', array('required' => true, 'value' => $controller->get('id'), 'order' => 11))));
 }
Exemplo n.º 2
0
 /**
  * create the form to edit controller data
  *
  * @param Admin_Model_DbRow_Controller $controller
  * @access public
  */
 public function __construct(Admin_Model_DbRow_Controller $controller)
 {
     parent::__construct($controller);
     $this->addElement(new Zend_Form_Element_Hidden('id', array('required' => true, 'value' => $controller->get('id'), 'order' => 11)));
 }