gr4devel Posted May 8, 2013 Share Posted May 8, 2013 (edited) Hi community, I'm facing a problem using the form helper in a module backend. I've setup a form helper and it display correctly in the module configuration page. However when I save the configuration and then I refresh the page I get all the errors that are related to the validations that I've implemented. The problem is that in the URL there is a paramter equal to "submit".$this->displayName (where $this->displayName is the name of my module) and so the isSubmit check in getContent method pass but without any form values. Actually I solved the problem with a workaround that is to roughly check the $_POST variable instead of relying on the isSubmit method (that check also the $_GET variable). Is there a better way (maybe a configuration of the form helper) to solve this problem? Thanks in advance! Edited May 15, 2013 by g11111g (see edit history) Link to comment Share on other sites More sharing options...
gr4devel Posted May 15, 2013 Author Share Posted May 15, 2013 I dropped the utilization of the Helpers as I see that they are particularly difficult to handle and doesn't help to clear and give to the code a better structure. I mark this post as [sOLVED] even though it wasn't really solved... For everyone that front this problem I personally advice to wait utilizing the Helpers until they get better supported and developed. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now