NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
[resolved] Code completion and __autoload


Joined: 30 Apr 2007
Posts: 8
Reply with quote
Hi,

I have the following code:
Code:

   function __autoload($argClass)
   {
      require_once "{$argClass}.inc.php";
   }

   /** @var Test */
   $objTest = new Test();
   echo $objTest->hello();


Unfortunally I can't get code completion on $objTest because the Test.inc.php isn't included with a normal require_once.

Can I get around this somehow and get code completion to work Question

Thanks Smile
View user's profileFind all posts by cederstromSend private message
Re: Code completion and __autoload
Veteran

Joined: 26 Dec 2006
Posts: 253
Location: Phoenix, AZ
Reply with quote
Tools -> Settings -> Code insight -> Limit scope to includes

Turn off that setting.
View user's profileFind all posts by bobwilliamsSend private messageVisit poster's website
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
and make sure that Test.inc.php is either in the project tree or its directory is listed in the Code Insight Includes list (see Project Properties)

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
[resolved] Code completion and __autoload
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic