Say I have a couple of files:
File A:
require_once('FooObj.php');
$foo = new FooObj();
$_SESSION['foo'] = $foo;
|
File B:
$_SESSION['foo']->DoSomeFoo();
|
How do I get code insight to work in File B for the foo object contained in the session? I've tried a few things with phpdoc comments, but not hit the right thing. (When I try to use completion, PhpED simply does nothing - no errors.) And in general, what's the best way to use phpdoc in this sort of situation - from a proper documentation perspective? @global and @var neither appear quite right, at least based on the phpdoc docs.
Thanks![/code]