Netbeans PHP代码完成失败了我还是失败了? [英] Netbeans PHP Code completion failing me, or am I failing it?

查看:58
本文介绍了Netbeans PHP代码完成失败了我还是失败了?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先这里是一些信息,我正在使用Netbeans 7.0,并将项目的php解释器设置为5.3.原因是我正在使用名称空间.

First off here is some information, I am using Netbeans 7.0 with the project's php interpreter set to 5.3. The reason for this is I am working with namespaces.

因此设置完成后,我有3个文件夹

So the setup is thus, I have 3 folders

-app                    Namespace App
--controller
--model
--view
---*login.php
-system                 Namespace Sleek
-vendor                 Namespace Vendor
--*Reform.php

我正在使用自动加载功能,但是整个项目都在使用中,这是我遇到的第一个无法完成代码完成的实例,我觉得很好奇...

I am using Autoloading, however the entire project is, and this is the first instance I've run into where code completion didn't work, I find it curious...

Reform.php

namespace Vendor;
abstract class Reform {
    static function HtmlEncode($str);
}

正在呼叫

...

is being called in...

login.php

(snip)
    <input id="url" name="url" type="hidden" value="<?php if (isset($_GET['r'])) { echo \Vendor\Reform::HtmlEncode($_GET['r']); } else { echo "/"; }; ?>">
(snip)

请忽略其中包含逻辑的可怕视图设置,并帮助我理解为什么当我输入\ Vendor \ Reform :: netbeans时对我没有任何建议,但是它可以在E_STRICT下编译并运行

Ignore the horrible view setup with logic inside it please and help me understand why when I type \Vendor\Reform:: netbeans has no suggestions for me, yet it compiles and runs under E_STRICT

推荐答案

这是netbeans PHP代码完成中的错误

It was a bug in netbeans PHP code completion

http://netbeans.org/bugzilla/show_bug.cgi?id=206521

这篇关于Netbeans PHP代码完成失败了我还是失败了?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆