CodeIgniter Forums
how to display the french message,after i logged in to the website using ion auth. - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: how to display the french message,after i logged in to the website using ion auth. (/showthread.php?tid=54381)



how to display the french message,after i logged in to the website using ion auth. - El Forum - 09-06-2012

[eluser]palsam[/eluser]
i have used the code
Code:
$this->session->set_flashdata('msg', $this->ion_auth->messages());



how to display the french message,after i logged in to the website using ion auth. - El Forum - 09-06-2012

[eluser]siptik[/eluser]
Do you have a language file?


how to display the french message,after i logged in to the website using ion auth. - El Forum - 09-06-2012

[eluser]palsam[/eluser]
yes i have the language file.


how to display the french message,after i logged in to the website using ion auth. - El Forum - 09-07-2012

[eluser]siptik[/eluser]
this is code work in my project:
Code:
if ($this->ion_auth->login($this->input->post('identity'), $this->input->post('password'), $remember))
{
  $this->session->set_flashdata('msg', $this->ion_auth->messages());
  redirect($this->input->get('referer'));
}
or
Code:
$this->session->set_flashdata('msg', $this->lang->line('login_successful'));

in the template should be the code:

Code:
<div>&lt;?=$this->session->flashdata('msg');?&gt;<div>
or
Code:
$data['msg'] =  $this->session->flashdata('msg');
$this->load->view(auth/header', $data);
sorry, my English is bad.
Helped you?

Or give more details.


how to display the french message,after i logged in to the website using ion auth. - El Forum - 09-11-2012

[eluser]palsam[/eluser]
i have workout the below code,

Code:
$this->session->set_flashdata('msg', $this->lang->line('login_successful'));

The language is not changing to french.


how to display the french message,after i logged in to the website using ion auth. - El Forum - 09-11-2012

[eluser]palsam[/eluser]
And I have created a language file for success message and load it, then it works,

But
Code:
$this->session->set_flashdata('msg', $this->ion_auth->messages());
is not displaying a french message.