[ 
https://issues.apache.org/jira/browse/NETBEANS-1773?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16708316#comment-16708316
 ] 

Christian Lenz commented on NETBEANS-1773:
------------------------------------------

The problem is, that the .class extension is an existing extension for class 
files coming out from Java. You can change the mimetype for class files to the 
php mimetype, but I wouldn't recommend it and I think using .class, which is 
not PHP, isn't a common practice. U should use the common way MyGoodClass.php, 
there is nothing wrong with it. Or you can use .inc files. But be careful, in 
older PHP interpreters/webservers, inc where printed out to the website.

> autocomplete improving
> ----------------------
>
>                 Key: NETBEANS-1773
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-1773
>             Project: NetBeans
>          Issue Type: Improvement
>          Components: php - Editor
>    Affects Versions: 8.2, 9.0
>            Reporter: Marcos Vinicius Soares Souza
>            Priority: Major
>
> Is it possible to fix some bugs in PHP autocomplete in netbens?
> The problem I identified was the following: I created a config.php file in my 
> project and within that file I created a PDO type object.
> Soon after I created another file called index.php and I imported the file 
> config.php
> through of comand "require" into index.php.
> The problem occurs when I call the PDO methods in the index.php file. 
> Netbeans does not show me the methods available in the class, so I have to 
> type everything manually.
> If possible, also leave the autocomplete better, making it necessary to 
> insert the "$" only once in the variable declaration, so that programmers 
> can, for example, declare a variable "$ a" and then call it just by typing 
> "a", just like in PHPStorm.
> If possible too, make the autocomplete work perfectly in .class files. 
> Generally in my PHP projects I use the .class extension in my classes to 
> differentiate from other .php files that are not classes. But autocomplete 
> does not work perfectly on these file types, for example, if I declare a 
> variable in a .class file, I will not be able to call it through autocomplete
> even with these problems I can not leave netbeans, I really like this IDE and 
> I will like it much more if these problems are solved.
> Thank you, for you are giving continuity to the project.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to