Welcome Guest, Not a member yet? Register   Sign In
problem with session in template
#5

How can I do to enforce these guidelines on all pages of the site?

Code:
$session_data = $this->session->userdata('logged_in');
        $data['username'] = $session_data['login'];
        $this->smarty->assign('user_log', $session_data);

and do not have to declare for each controller?

Thanks for the reply Smile
Reply


Messages In This Thread
problem with session in template - by StratoKyke - 05-14-2015, 02:35 AM
RE: problem with session in template - by StratoKyke - 05-16-2015, 08:39 AM
RE: problem with session in template - by CroNiX - 05-16-2015, 03:56 PM
RE: problem with session in template - by CroNiX - 05-17-2015, 09:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB