Closed alcanardanangelo closed 6 years ago
just like this in your controller :
$data['message'] = $this->session->flashdata('success');
$this->twig->display('(your-view)',$data);
and then in your view :
{% if message %}<div class="alert">{{ message }}</div>{% endif %}
Hi Kenji,
How can I use the
$this->session->flashdata()
in my view?If I set the flashdata in my controller like this:
How can I call it on my view?
Thanks!