从CodeIgniter中的视图检查会话 [英] Check session from a view in CodeIgniter
本文介绍了从CodeIgniter中的视图检查会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
什么是最好的方式来检查会话从一个视图在CodeIgniter,它没有显示在他们的用户指南,否则我将必须在一切,两个意见,这是奇怪的...仍然是一个新手的CodeIgniter。 ..
What is the best way to check session from a view in CodeIgniter, it shows no way in their user guide, otherwise I will have to make two views on everything, which is kinda weird...still a newbie to CodeIgniter...
请帮助!感谢...
推荐答案
像任何其他数据一样载入视图...
Load it into the view like any other piece of data...
$data['item'] = $this->session->userdata('item');
$this->load->view('view', $data);
这篇关于从CodeIgniter中的视图检查会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文