• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.