Question

In Main.php I have a variable $SOME_VARIABLE and I also include('Sub.php')

When the script runs, Sub.php of course has access to $SOME_VARIABLE, but when I'm in Aptana if I want to keep a reference to it (say, with autocompletion) Aptana doesn't know $SOME_VARIABLE exists in Sub.php.

Is there a (simple) way to reference Main.php from Sub.php so that Aptana knows Sub.php has access to $SOME_VARIABLE?

Was it helpful?

Solution

Right click on the project > Properties > Project Natures > Check PHP

I just needed to set my Project Natures correctly. I did have it set to Ruby and Web - Primary. When I checked PHP then it worked.

enter image description here

I probably don't need Ruby checked, but whatever.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top