Welcome Guest, Not a member yet? Register   Sign In
session in view file
#4

You can use the session help like so.

PHP Code:
<?= session('item');?>

I load my sessions in a BaseController constructor so its always available.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
session in view file - by jbloch - 10-12-2019, 01:32 AM
RE: session in view file - by Digital_Wolf - 10-12-2019, 08:03 AM
RE: session in view file - by Ekley - 10-13-2019, 02:58 AM
RE: session in view file - by InsiteFX - 10-13-2019, 08:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB