PDA

View Full Version : Workspace Help


kevincrafts
06-15-2008, 12:50 AM
I am working on an addon which uses an admin workspace. After a successful upload, I need the id of that image.

Is this variable available? I tried using $theid but it is empty.

Any ideas on how I can get this value?

Dkozikowski
06-15-2008, 01:28 AM
Are you trying to access $theid within a function? try adding global $theid; to your function.


function myFunction()
{
global $theid;

// do stuff
}

kevincrafts
06-15-2008, 01:47 AM
Yeah I tried that but it still returns an empty value. Other variables seem to work ok but not that one.

kevincrafts
06-15-2008, 02:04 AM
I got it working now - I was using the wrong function which did not have that value available yet.