The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CodeIgniter Integration / MVC Integration
#1
Has anyone integrated UserSpice with CodeIgniter or any other model-view-controller (MVC) framework.

I installed UserSpice (US) in the root directory and everything in the demo pages works correctly.

Now within my CodeIgniter (CI) application, nothing seems to function. With this MVC framework, pages are created programmatically/dynamically within a single page controller within a different directory.

I adjusted all the paths and finally managed to get the header to appear. However, I noticed that even if I log into a UserSpice demo page on the same domain, I'm not really logged into any of the CodeIgniter based pages.

So I tried fooling around with the page 'users/classes/Users.php' to display a dump of the session variable: print_r($_SESSION);

On the demo page that functions properly, it displays:
Array ( [user] => 1 )

But on the CodeIgniter pages, it shows:
Array ( [__ci_last_regenerate] => 1506871995 )

It appears the CodeIgniter framework destroys the UserSpice sessions and overwrites it.

Any advice on rectifying?
  Reply


Messages In This Thread
CodeIgniter Integration / MVC Integration - by userspicenewbie - 10-01-2017, 02:09 PM

Forum Jump:


Users browsing this thread: 6 Guest(s)