Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » How to include my own files so that code hinting works(what is the proper way yto require/include?)
How to include my own files so that code hinting works [message #666542] Wed, 20 April 2011 19:58
sneakyimp Mising name is currently offline sneakyimp Mising nameFriend
Messages: 41
Registered: December 2009
Member
I have written a class called CloudAsset. In this class, I have painstakingly created javadoc comments so that I have detail about all my properties, methods, etc. When I open this file in eclipse and hover over a function or property, the code hinting popup looks *great*. It's exactly what I need.

However, when I include this file in another PHP document (in a very complex project) then my code hinting is not working. Here is how I've included my file -- identically to how other existing files are included:

// from the original code
include($_SERVER['DOCUMENT_ROOT'].'/erp_php/manage_items/scripts/image-handlers.php');
// added by me
include($_SERVER['DOCUMENT_ROOT'].'/includes/classes/CloudAsset.php');


When I hover over a function called getAllImages which is defined in the file image-handlers.php, I see the lovely javadoc comments in the code hint popup. When I hover over this code, it just says "Occurence of extractSanitizedFileNameFromURL":
$sanitizedImageFileName = CloudAsset::extractSanitizedFileNameFromURL($img);


Why does the other file's code hinting work and mine does not? Do any guidelines exist about how to treat your includes so that Eclipse can parse them and provide code hinting?
Previous Topic:web output in Eclipse using IE stylesheet
Next Topic:Is there a possibility for code completion in Untitled PHP file, Remote PHP files and so on
Goto Forum:
  


Current Time: Fri Mar 29 02:01:48 GMT 2024

Powered by FUDForum. Page generated in 0.02778 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top