Page 1 of 1

eclipse pdt outline view problem

Posted: Tue Sep 02, 2008 1:07 pm
by alihammad
Hi am using eclipse pdt. In the outline view i cant find the variables and gloabals used in the document, i can see used functions, constants, included files, classes.. What should i do, I want the outline view to have variables and constants also .. please help
take care .

Re: eclipse pdt outline view problem

Posted: Tue Sep 02, 2008 3:12 pm
by koen.h
Variables and globals (global variables) can change withing the PHP file. How would you like the outline display the variable $i in the following example:

for ($i=0; $i<10000; $i++) { echo $i; }

?

Re: eclipse pdt outline view problem

Posted: Wed Sep 03, 2008 10:03 am
by alihammad
i mean i have big php files sometimes i forget the names of the variables am using in the file so it would be nice to have their names in outline. i dont want it to show variable value or something just their name

Re: eclipse pdt outline view problem

Posted: Thu Sep 04, 2008 4:15 am
by koen.h
That makes sense. But I'm inclined to say that with a different coding style this won't be a problem. My guess is that you are coding procedural and putting too little in reusable functions. Maybe you can give an example of such a long page to give me a better idea of where the need for such an argument list arises.