EllisLab text mark
Advanced Search
     
shoul i use redirect or view if validation error exists?
Posted: 02 November 2012 02:10 AM   [ Ignore ]
Joined: 2012-09-16
4 posts

when should i use redirect and view?

after user submit a form to a function called add(),
there’s a validation inside of it,

what should i do? redirect back to a function that
display my registration form or should i load->view()

and if registration success should i make a new function that
display a successful page or should i load->view inside the add function.

i am so confuse.

pls help.

thanks.

 
Posted: 02 November 2012 08:22 AM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Joined: 2011-02-23
882 posts

Please no double- or cross-posting.

Go to your very similar thread

 Signature 

ignited Community Framework (WiP)  |  Read the User’s Guide. It won’t bite.

STOP! Before posting your questions, remember the WWW Golden rule:
What did you try? What did you get? What did you expect to get?

CI example .htaccess