Welcome Guest, Not a member yet? Register   Sign In
Integrating with Moodle (problem)
#10

[eluser]Allen Dino[/eluser]
Hi Jay, (sorry, didn't notice that this thread was old. :lol: )

I have that exact same issue! I need to load moodle variables in CI so that I can be able to create CI pages (which is faster rather than tinkering with Moodle's code) that rely on Moodle session variables. But I can't seem to load the variables from Moodle eventhough I have included the config.php file of moodle.

Here's my moodle and CI directory structure:
<root>/moodle
<root>/CI stuffs

I tried using
Code:
include ("<root>/moodle/config.php");
and called $_SESSION['$USER'] but CI can't seem to load the variables. I tried creating a raw php file invoking the same config.php of moodle and I was able to retrieve the $_SESSION['$USER'] with success.

I think CI prevents something in the config.php of Moodle, but I'm not really sure.

I'll keep working on it and I'll keep you posted if ever I find a workaround on this... I hope!

Anyhow, any suggestions from the community will be greatly appreciated.


Messages In This Thread
Integrating with Moodle (problem) - by El Forum - 08-11-2007, 07:38 PM
Integrating with Moodle (problem) - by El Forum - 08-11-2007, 07:41 PM
Integrating with Moodle (problem) - by El Forum - 08-11-2007, 10:29 PM
Integrating with Moodle (problem) - by El Forum - 08-11-2007, 10:46 PM
Integrating with Moodle (problem) - by El Forum - 08-12-2007, 12:07 AM
Integrating with Moodle (problem) - by El Forum - 08-12-2007, 12:26 AM
Integrating with Moodle (problem) - by El Forum - 08-12-2007, 12:44 AM
Integrating with Moodle (problem) - by El Forum - 08-12-2007, 12:49 AM
Integrating with Moodle (problem) - by El Forum - 08-12-2007, 01:59 AM
Integrating with Moodle (problem) - by El Forum - 10-30-2008, 09:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB