predefined php variables auto complete list

Let us know what you would like to see in the next version of this software

Moderator: kfury77

Forum rules
Please follow these guidelines when posting feature requests. This will help to increase the value of your contribution.
  • Do not create new topics for already requested features. Add your comments to the existing feature request topics instead;
  • Create separate topic for each feature suggestion. Do NOT post a number of non-related feature suggestions in a single topic;
  • Give your topic a meaningful title. Do NOT create topics with meaningless titles, such as "My Suggestion" or "My Problem".
Please note that we DO READ all suggestions, even if a reply is not posted. Thanks!
Post Reply
jbund
Posts: 6
Joined: Mon May 15, 2006 3:35 am

predefined php variables auto complete list

Post by jbund »

I searched the forum and since I didn't find it, I would like to make the following feature suggestion.

When typing a predefined .php variable, it would be very helpful to get an auto complete list , like dreamweaver's. So, if I type: $_ I would get :

$_SERVER
$_ENV
$_COOKIE
etc.

And if I select $_SERVER, another auto complete list of (server) variables would appear:

PHP_SELF
GATEWAY_INTERFACE
SERVER_ADDR
etc.

Would this be possible?

Thank you for your time reading and considering this.

--
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Post by chrisjlocke »

Do you know there is a button on the PHP toolbar which gives you access to all known pre-defined variables? I know its not exactly 'auto complete', but certainly saves typing them in.

Also, WeBuilder (and the other apps) have a 'learning' auto complete, so once the variables have been typed in, they will appear on the autocomplete once you begin typing them again. So, type $thisisavariable, and once you type $th again, the autocomplete will kick in.
jbund
Posts: 6
Joined: Mon May 15, 2006 3:35 am

Post by jbund »

chrisjlocke wrote:Do you know there is a button on the PHP toolbar which gives you access to all known pre-defined variables? I know its not exactly 'auto complete', but certainly saves typing them in.
No, I didn't know.
chrisjlocke wrote: Also, WeBuilder (and the other apps) have a 'learning' auto complete, so once the variables have been typed in, they will appear on the autocomplete once you begin typing them again. So, type $thisisavariable, and once you type $th again, the autocomplete will kick in.
Yes, I've seen this and it's very helpful once you have defined your variable(s). This also works when you've typed $_COOKIE or any other predefined variable and it does saves time, but my main point was that it would be really helpful to have the functionality Dreamweaver has with respect to this variables, especially when you don't have any predefined variables in your code yet.

You say there's a button, I will look for it when I get home. Thanks for the tip.

--
Post Reply