This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

qspec
qspec

Sorry if this has been asked before. I did a few searches, and I did look a little bit, but I didn't see it.

My problem:

I have a php file in October's assets folder. It, using Auth::getUser(), pulls data specific to who's logged in, puts it in an associative array, encodes it as JSON, and echo's it.

Outside of October on a different server, I have an HTML5/JS project with a basic function which using .getJSON() alerts a value.

This has worked with hardcoded information and mysqli functions in the PHP (the problem being that I have to specify a userID and so the data is no longer specific to who's logged in). I've also used Auth::getUser() with some success on projects fully contained within October.

But when I run it with Auth::getUser(), I get a 500 error, and I can't seem to figure out how to work around it.

Last updated

FelixINX
FelixINX

Why two same post? Can you delete one.

Thanks

dshoreman
dshoreman

Duplicate thread deleted.

Last updated

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.