• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Basic Login System

#2
[eluser]imn.codeartist[/eluser]
In your controller set your error message in session

Code:
$this->session->set_flashdata('msg','your message');

in your view

Code:
if($this->session->flashdata('msg'))
{
       echo $this->session->flashdata('msg');
}

this will set error message in the session and once it print it flushes itself


Messages In This Thread
Basic Login System - by El Forum - 10-08-2009, 09:57 AM
Basic Login System - by El Forum - 10-08-2009, 04:11 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.