set_message Dysplay |
[eluser]Gabi3xz[/eluser]
Example have code Code: $this->load->library('form_validation'); Code: $this->form_validation->set_message('success_login', 'Login success'); What is not correct?
[eluser]vrencianz[/eluser]
The set_message() function is used to display error messages (See http://ellislab.com/codeigniter/user-gui...tingerrors for setails). To display a success message 1) You can use the success page or: 2) Create two helper functions (in a file helpers/utils_helper.php, for example) Code: /** 3) On success call <b>set_feedback('Login success');</b> 4) Somewhere in your view insert Code: <?php if($feedback): ?> 5) load your view Code: $this->load->helper('utils'); I hope this helps.
|
Welcome Guest, Not a member yet? Register Sign In |