Welcome Guest, Not a member yet? Register   Sign In
form_error not displayed
#9

(This post was last modified: 12-29-2014, 07:24 AM by Aurélienwww.)

Actually I pass some default datas with method "create()". This method use a model to pass some database datas to the view with the form.

I could put that part of the code in the same method called "add()" but I wanted to separate those two things.

I can resume my code as follow considering a user is filling the form :

  1. A user fills the form and push "valider" button, the controller and action called are "devis/add".
  2. In "devis/add", according to rules of validation we look if there are errors or not.
  3. If there are some, We are taken to a method called "create()" which is gonna load the view with the form passing some datas needed to display form fields (<option> of <select> tag are generated this way). This is the same method called initialy to get the page with the form.
  4. If there a no errors, the user is taken to a success page.
Reply


Messages In This Thread
form_error not displayed - by Aurélienwww - 12-28-2014, 10:54 AM
RE: form_error not displayed - by Rufnex - 12-28-2014, 01:43 PM
RE: form_error not displayed - by Aurélienwww - 12-28-2014, 02:32 PM
RE: form_error not displayed - by includebeer - 12-28-2014, 07:33 PM
RE: form_error not displayed - by Aurélienwww - 12-29-2014, 02:47 AM
RE: form_error not displayed - by includebeer - 12-29-2014, 05:12 AM
RE: form_error not displayed - by Aurélienwww - 12-29-2014, 05:43 AM
RE: form_error not displayed - by Avenirer - 12-29-2014, 06:25 AM
RE: form_error not displayed - by Aurélienwww - 12-29-2014, 07:18 AM
RE: form_error not displayed - by Aurélienwww - 12-30-2014, 12:08 PM
RE: form_error not displayed - by mwhitney - 12-30-2014, 01:55 PM
RE: form_error not displayed - by includebeer - 12-31-2014, 06:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB