Welcome Guest, Not a member yet? Register   Sign In
Alternative to success messages
#1

[eluser]sacarias[/eluser]
Hello all,
i was wondering if there is an alternative to the success message page that codeigniter pushes using.
ex. Success Page in Form Validation

I dread redirecting to another page to tell errors/success. i would rather stay on the original page and output the success message.

another example...
at the singup of my website, i require an email, and the email must be verified.

so after signup form is submitted it will not redirect but rather display a success message telling the user to check the email. i know this is possible in other code, but not sure in CI.
Thanks for swift responses.
#2

[eluser]SomeFunkyDude[/eluser]
Check out the Sessions Class, there's methods for "Flashdata". You can do an if/else in the controller, if the account was created, set the flashdata to store a success message, then you can somehow work this into the layout.
#3

[eluser]sacarias[/eluser]
Oh i was reading about flash data in the documentation. Thank you ill give it a try.




Theme © iAndrew 2016 - Forum software by © MyBB