Aptana 终端 - CLI 中的 PHP
一开始我试图在 wandows cmd.exe 中运行 Symfony 的 php 命令
过了一会儿我放弃了。
自从我使用 Aptana 以来,我试图弄清楚如何执行像
php 这样的命令app/console 学说:schema:update --force
适用于 Symfony2。但我无法弄清楚这是否可能?
由于 Aptana 中的终端是 Unix 风格的(无论如何看起来都像),我更喜欢在 Aptana 终端中执行 php 命令,
任何帮助都会受到赞赏。
At the start I was trying to run php commands for Symfony in wondows cmd.exe
After a while i gave up.
Since I use Aptana, I tried to figure out how to do commands like
php app/console doctrine:schema:update --force
which is for Symfony2. But I cannot figure out of this is possible or not?
Since the Terminal in Aptana is Unix-style (looks like it anyway) I'd prefer doing php commands in Aptana Terminal
any help is appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要工作,您必须在系统上的 PATH 环境变量中设置 php 的路由,例如
C:\wamp\bin\php\php5.3.10\
,请务必放置最后一个\。
如果您已打开 Aptana,请重新启动它。之后你可以尝试在终端中运行 echo $PATH,输出列表中应该包含刚刚输入的 PHP 的路径。
要测试配置,请运行 php -version ,如果输出是安装的 php 版本,只需将自己置于 symfony 目录中并运行 php app / console 即可。
To work you must have set in the PATH environment variable on your system the route to php, for example
C:\wamp\bin\php\php5.3.10\
, be sure to place the last\
.If you have open Aptana, restart it. After this you can try running in the terminal echo $ PATH, in the output list should contain the path to PHP that just entered.
To test the configuration, run
php -version
, if the output is the version of php installed, simply position yourself in the symfony directory and runphp app / console
.