how to access session data in the view
Created 7 years ago by abdulhi i added session data in the controller using $this->load->library('session'); $this->session->set_userdata('pending','TRUE'); and then we i tried to access in the view its empty {{ session:userdata name="pending" }}
please help
keevitaja
—
7 years ago
@william lol, the guy is asking about v2 codigniter code!
https://codeigniter.com/userguide2/general/views.html
And i think session data becomes available on the next request in codeigniter. But i am not sure... it has been so long
william
—
7 years ago
@keevitaja lol. Maybe i need to read the questions in full 😄
william
—
7 years ago
@keevitaja lol. Maybe i need to read the questions in full 😄
https://pyrocms.com/documentation/streams-plugin/v1.1#usage/session