Welcome Guest, Not a member yet? Register   Sign In
how to display the french message,after i logged in to the website using ion auth.
#1

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

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

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

[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.
#5

[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.
#6

[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.




Theme © iAndrew 2016 - Forum software by © MyBB