如何在phpstorm中使用phalcon-devtools \ ide \ phpstorm? [英] How do I use phalcon-devtools\ide\phpstorm in phpstorm?

查看:175
本文介绍了如何在phpstorm中使用phalcon-devtools \ ide \ phpstorm?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将Phalcon开发人员工具与phpstorm集成.有一个此处的视频,但是我由于我的位置而无法查看它.

I am trying to integrate the Phalcon developer tools with phpstorm. There is a video here, but I am unable to view it due to my location.

我在文档中找不到其他可用的参考,我该如何完成呢?

I can't find any other usable reference in the documentation, how can I accomplish this?

推荐答案

以下是步骤.

  • 确保已安装phalcon-devtools 说明
  • 使用phalcon-devtools创建一个项目(除非您已经有一个项目)
  • 启动PHPStorm并在那里创建项目(除非您已经这样做了).
  • 单击文件设置(Ctrl + Alt + S)(或Mac的PHPStorm首选项)
  • 单击第二个选项命令行工具支持"
  • 单击+图标,将出现一个新的弹出窗口.确保已选择自定义框架"
  • 在新的弹出框中输入:

  • Make sure you have the phalcon-devtools installed Instructions
  • Create a project using phalcon-devtools (unless you already have a project)
  • Launch PHPStorm and create the project there (unless you already did that).
  • Click File-Settings (Ctrl+Alt+S) (or PHPStorm-Preferences for Mac)
  • Click the second option "Command Line Tool Support"
  • Click the + icon and a new popup comes up. Make sure you have "Custom Framework" selected
  • In the new popup type:

框架:Phalcon

Framework: Phalcon

工具路径:/Applications/MAMP/htdocs/phalcon-tools/ide/phpstorm/phalcon.sh

Tool path: /Applications/MAMP/htdocs/phalcon-tools/ide/phpstorm/phalcon.sh

别名:phalcon

Alias: phalcon

说明:Phalcon开发人员工具

Description: Phalcon Developer Tools

这假定您的phalcon工具已安装在以下位置:

This assumes that your phalcon-tools have been installed under:

/Applications/MAMP/htdocs/phalcon-tools/

此外,如果您使用Windows环境,则应使用phalcon.bat而不是phalcon.sh(请参见上面的工具路径"行)

Also if you use a Windows environment, you should use phalcon.bat instead of phalcon.sh (see Tool Path line above)

  • 单击应用",然后单击确定".
  • 单击工具-运行命令(Ctrl + Shift + X)
  • 在命令"输出窗口中,键入:

  • Click Apply and then OK.
  • Click Tools - Run Command (Ctrl+Shift+X)
  • In the Commands output window, type:

猎鹰命令

您应该能够看到输出.如果有错误,请检查您的路径.键入任何phalcon-tools命令以为您的项目生成组件.

You should be able to see output. If there is an error check your path. Type any of the phalcon-tools commands to generate components for your project.

  • 在PHPStorm中,您应该在项目浏览器外部库"中看到.右键单击并选择配置PHP包含路径"
  • 在新对话框中,单击+,然后导航到/Applications/MAMP/htdocs/phalcon-tools/ide/phpstorm/0.5.0文件夹,然后单击确定.

现在,当您键入代码时,将出现具有所有相关功能的相关帮助器弹出窗口.

Now as you type code, the relevant helper popup will appear with all the relevant functions.

2012-09-07:Phalcon PHPStorm支持beta版本实现0.5.0

2012-09-07: There is a beta implementation of the Phalcon PHPStorm support for 0.5.0 here. In the upcoming weeks the code will become part of the framework and included with the 0.5.0 version.

这篇关于如何在phpstorm中使用phalcon-devtools \ ide \ phpstorm?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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