Joomla and Codeigniter |
[eluser]danielgrin[/eluser]
I based my solution on code found here http://forum.joomla.org/viewtopic.php?f=304&t=580193. At first I tried to load the Joomla framework within a CI library, but this caused a series of errors, and seemed like more trouble than it was worth. My current working solution is to use CURL to access a custom script. I'm sure this could be refined further but I needed a quick solution. JOOMLA SIDE (loads Joomla framework and returns logged in user object as JSON) file: get_joomla_user.php (could be in the site root or anywhere as long as paths are correct) Code: <?php CI SIDE - fetch user object via file_get_contents file: CI_APP_FOLDER/libraries/Joomla_user.php Code: <?php I hope this helps. Daniel |
Messages In This Thread |
Joomla and Codeigniter - by El Forum - 03-16-2011, 11:23 AM
Joomla and Codeigniter - by El Forum - 04-03-2011, 10:17 PM
Joomla and Codeigniter - by El Forum - 04-09-2011, 10:05 AM
Joomla and Codeigniter - by El Forum - 04-09-2011, 10:08 AM
Joomla and Codeigniter - by El Forum - 04-09-2011, 12:40 PM
Joomla and Codeigniter - by El Forum - 04-09-2011, 11:20 PM
Joomla and Codeigniter - by El Forum - 07-29-2011, 01:27 AM
|