Welcome Guest, Not a member yet? Register   Sign In
MVC And Form Submission Best Practice
#2

[eluser]schnoodles[/eluser]
OK for starters i would use that because i could just type in the url with /s in it.

I tend to do
Code:
class Blog extends Controller {

function index() {
   //rules

  if ( $this->validation->run() == false ) { //show form again }
  else { set_flashdata('success'); redirect('blog/success');

}

function success() {
//show different view and echo flashdata where you want it.
}

}


Messages In This Thread
MVC And Form Submission Best Practice - by El Forum - 10-31-2007, 06:19 PM
MVC And Form Submission Best Practice - by El Forum - 10-31-2007, 06:26 PM
MVC And Form Submission Best Practice - by El Forum - 10-31-2007, 06:42 PM
MVC And Form Submission Best Practice - by El Forum - 10-31-2007, 06:45 PM
MVC And Form Submission Best Practice - by El Forum - 11-01-2007, 12:58 AM
MVC And Form Submission Best Practice - by El Forum - 11-01-2007, 01:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB