I have action:
        public function addBookAction()
        {
                $form = new Form_Books();

                 if ($this->getRequest()->isPost())
                { 
                        $request = $this->getRequest();
                        if ($form->isValid($request->getPost())) 
                        {
                                .................
                        }
                }               

                $this->view->form = $form;      
        }


And In form I have submit button:
       $this->addElement('submit', 'submit', array(
            'ignore'   => true, 
            'label'    => 'Submit',
        ));


How can I make Cancel button ? I think I can't make button cancel type
'submit' because after clicked this button it will be executed action
addBookAction() and book will be added.
-- 
View this message in context: 
http://www.nabble.com/how-can-I-create-Cancel-button---tp25528935p25528935.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to