Code completion does not recognize Exception |
Veteran
|
I have created my own exception like this.
class myException extends Exceptions {} but I were expecting that PHPed (version 5) would code complete Exceptions when I wrote Exep <Ctrl + Space> But it does not. It does not recognize the core classes ? Is this normal PHPed behaviour, or is it my PHP that is busted. I AM having big problems getting the TechPlatform to work with MySQL See : mysql5-and-tech-platform-5-t3315.html so I might have messed something up in the configurations. |
||||||||||||
|
Site Admin
|
Please have a look at this post: http://forum.nusphere.com/code-completion-for-php-spl-dom-pdo-and-dom-t1733.html
this way you can add support for any embedded classes, functions, variables, constants and so forth, that comes with either standard php extensions or with custom ones. |
||||||||||||
_________________ The PHP IDE team |
Veteran
|
Ok so you actually have to add a source file with spl.php to get it to recognize the build in structure.
Does such a source file exist for PHP 5.2.1 ? |
||||||||||||
|
Site Admin
|
if you mean Exception class, it's short.
if you mean complete list, it's very big. |
||||||||||||
_________________ The PHP IDE team |
Veteran
|
Well if spl.php is a sourcefile that you need to include in your project in order for PHPed to lookup the core features of PHP5, then that file in the forum, is a little old. It is for version 5.1 from back in 2005.. The only purpose is to get autocompletion to help you writing your code. So it is not only for the Exception class, but for all classes that are part of the core PHP 5.2.1 |
||||||||||||||
|
Site Admin
|
you don't need to include this into the project. Just point to that directory in Code Insight Includes list (see project properties). Regarding the rest, that's it.
|
||||||||||||
_________________ The PHP IDE team |
Veteran
|
Yes it works for Exception.
But it does not include the Reflection classes, of PHP 5.2 |
||||||||||||
|
Code completion does not recognize Exception |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by