Welcome Guest, Not a member yet? Register   Sign In
Routing Question
#4

You could pass the user name to congratulations during the redirect

PHP Code:
redirect(base_url("register/congratulations/$username")); 

Revised congratulations method

PHP Code:
public function congratulations($username)
 {
   $data = array(
     'title'    => 'User successfully registered',
     'username' => $username
   
);
   $this->load->view'templates/header'$data );
   $this->load->view'register/congratulations'); //you don't have to pass $data again if it is unchanged
   $this->load->view'templates/footer' );
 
Reply


Messages In This Thread
Routing Question - by ironPotato - 09-25-2017, 11:14 PM
RE: Routing Question - by InsiteFX - 09-26-2017, 03:12 AM
RE: Routing Question - by ironPotato - 09-26-2017, 05:09 AM
RE: Routing Question - by dave friend - 09-26-2017, 10:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB