I have the following function in my Controller
:
private function SetImageAndColor($client_id) {
if (isset($_GET['color']) AND isset($_GET['image'])) {
$dados['click2call'][$client_id]['image'] = $this->input->get('image');
$dados['click2call'][$client_id]['color'] = $this->input->get('color');
$this->session->set_userdata('click2call', $dados);
}
}
It takes the parameters passed via $_GET
and saved in the session.
My question is this: how do I check if this session exists, but within View
?