NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
[resolved] PEAR and code completion


Joined: 29 Feb 2008
Posts: 12
Reply with quote
Hello, maybe this problem was discussed already, but I didn't find any solution.
I use PHPEd with third party server, where there is some additional include path in php.ini (e.g. for PEAR library).
So, question, how to make PEAR work with code completion, for example I use this construction:

Code:

require('DB.php'); //Here we require DB class from PEAR library, i.e. DB.php file not included directly in project, but it founded through path in php.ini

//nearly code completion not work, i.e. if I will write "DB", PHPEd will not find any DB class and its metods.
$db = DB::connect('mysql://'.DB_USER.":".DB_PASS."@".DB_SERVER."/".DB_NAME);
if (PEAR::isError($db))
   die($db->getMessage());


Thanks.
View user's profileFind all posts by madfobosSend private message


Joined: 29 Feb 2008
Posts: 12
Reply with quote
And where is support answer?
I have tried everything possible (changed php.ini location in PHPEd settings, set PEAR path as additional for project in MAP section, etc), but it's not work for me correct.
View user's profileFind all posts by madfobosSend private message


Joined: 29 Feb 2008
Posts: 12
Reply with quote
Well, and this you call best support Sad Maybe answer something?
View user's profileFind all posts by madfobosSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
Quote:
So, question, how to make PEAR work with code completion

you need to add PEAR directory into Code Insight Includes in the project properties. Then all PEAR classes will appear in the Code Explorer and code completion will use all functions/methods/constants/and classes.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 29 Feb 2008
Posts: 12
Reply with quote
Thanks, Dmitri.
And is it possible to make these settings global for all projects?
View user's profileFind all posts by madfobosSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
Quote:
is it possible to make these settings global for all projects

when you save the project you can check "Save as default" so all newly created projects will pick new defaults up.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
[resolved] PEAR and code completion
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