|  | 
  Dragos - 2010-06-19 21:09:58i use a orm with his own validation, and i want to redisplay the form if it is submitted succesufuly(setting no validation), what should i do.
  Gergely Aradszki - 2010-06-20 14:17:55 - In reply to message 1 from DragosYou should use:$form->set("showAfterSuccess", true);
 
 (Or you colud simply remove the '$form->set("showAfterSuccess", false);' line from the example, as the default value of this option is "true")
  Dragos - 2010-06-20 15:27:57 - In reply to message 1 from DragosTanks. but i can get escape from that message, suppose this i could resolve to set an empty message but in this way the form isn't repopulate with value form get.
  Gergely Aradszki - 2010-06-21 13:19:26 - In reply to message 3 from DragosWell, you are right, the message after submission can not be suppressed at this time, I'll solve this issue.As for the second problem: You can use $form->set("cleanAfterSuccess", false);
 This will switch off cleaning after a successful submission.
 There are several other options you cand set, as descriped at the "set" method (maybe not the best place for these important settings, so I'll copy them here)
 
 * title <str> title of the form
 * name <str> name & id of the form
 * action <str> action attr of form
 * method <enum> method attr of form (post) [get | post]
 * class <str> class attr of form
 * validator <str> filename of the validator class (validators.php)
 * validatorClass <str> name of the validator class (Validator)
 * submitMessage <str> message displayed on successful submit (Form successfully submitted!)
 * submitField <str> id of submit button
 * showDebug <bool> show exception messages
 * linebreaks <str> what to use es linebreaks
 * divs <bool> use divs to encapsulate label&field rows
 * showErrors <bool> show validation error messages
 * errorTitle <str> title of the error list
 * errorLabel <str> prepends this to the label of the invalid field
 * errorPosition <enum> specify the position of the errorbox  [before | after | in_before | in_after]
 ("before" and "after" places the box outside the form element, the in_* parameters place it inside)
 * showAfterSuccess <bool> show form after succesful submit (true)
 * cleanAfterSuccess <bool> clean the fields after succesful submit (true)
 
 
  Dragos - 2010-06-22 15:47:40 - In reply to message 4 from Gergely Aradszkii hope not upset you with my posts but i'm trying to find a form classs that working fine and your class is't very apropiate by zend and i want to use it so two more i have for your attention. i have a field who remember a upload file  [existing-media] => __flourish_temp\bio_design_logo_copy4.jpgso your class remove that slash and second if i use tinymce this line $str=htmlspecialchars($str,ENT_QUOTES,"utf-8"); must comment i think you know why :) anyway tanks for your feedback.
  Gergely Aradszki - 2010-06-23 17:40:57 - In reply to message 5 from DragosI always welcome feedback:)
 These issues could be fixed by another option that causes the class not to sanitize inputs. Although you can request the data without cleaning the parameters by using getData(false), this might not always be the appropriate solution for you.
 
 I'll fix this soon.
 
 "your class is't very apropiate by zend" yould you please explain this?
 
 And again, thanks for your feedback, this helps me improve this class!
 
 
 
 
 
 
  Gergely Aradszki - 2010-06-23 17:49:17 - In reply to message 5 from DragosI must admit, I don't know why I put in stripslashes... It has no real use here, so I'll remove it.
  Gergely Aradszki - 2010-06-23 21:08:11 - In reply to message 5 from DragosI've updated the class, hope this helps a bit
  Dragos - 2010-06-23 23:10:04 - In reply to message 8 from Gergely Aradszkiyes i found that erase slahes. i mean that this class use to be a little like zend framework form helpers. tank you again. now i can use properly this class with florish framework.
  Gergely Aradszki - 2010-06-24 09:18:24 - In reply to message 9 from DragosI'm glad your problem is solved:) If you have any further suggestions, don't hesitate to contact me! |