Can I pass additional data to a redirect ? |
[eluser]The Mask[/eluser]
Hi, I have a check_logon() function that is used to see if the user is allowed access to a members area and does a redirect to the home page if not logged on. I'd like to be able to display a message but how do I pass it to the redirect? Normally, I would do something like this... if ( $logged_on ) { blah blah } else { $data['message'] = 'please logon'; $this->load->view( 'home', $data ); } and in the view <?php echo $message; ?> Thanks
[eluser]TheFuzzy0ne[/eluser]
http://ellislab.com/codeigniter/user-gui...sions.html - Please see the section on flashdata. |
Welcome Guest, Not a member yet? Register Sign In |