0
我是Symfony2中的新成員。昨天我下載Eclipse Kepler 4.3並安裝了http://p2-dev.pdt-extensions.org的pdt插件。
在Eclipse中創建Symfony項目後,我閱讀了一些教程。 在我的Controller LoginController中,我想使用$this->createFormBuilder
方法。
但我沒有代碼完成。
我可以通過按住Ctrl鍵並點擊鼠標在類名上extends Controller
,此外,如果我鍵入self::
,則代碼完成。如果我輸入$this->
,我什麼也得不到。
任何人都知道可能是什麼問題? 的項目性質是在項目文件如下:
<natures>
<nature>org.eclipse.php.core.PHPNature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>com.dubture.composer.core.composerNature</nature>
<nature>com.dubture.symfony.core.symfonyNature</nature>
<nature>com.dubture.doctrine.core.doctrineNature</nature>
</natures>