Phalcon7 开发工具(Phalcon7 Developer Tools)¶
Phalcon7 提供的这个开发工具主要是用来辅助开发,比如生成一些程序的基本框架,生成控制器、模型等。使用这个工具我们只需要一个简单的命令即可生成应用的基本框架。
非常重要: 要使用这个工具我们必须要安装 Phalcon7 扩展才行。
下载开发工具(Download)¶
该开发辅助工具已经包含在了源码中 Github 。
Linux 系统下使用 Phalcon 开发工具(Phalcon Developer Tools on Linux)¶
为文件 phalcon.php 创建软链接:
ln -s ~/cphalcon7/devtools/phalcon.php /usr/bin/phalcon
chmod ugo+x /usr/bin/phalcon
就这么简单,你已经安装好开发工具了。
获取可用的命令(Getting Available Commands)¶
我们可以在虚拟控制台上输入如下命令: phalcon commands
$ phalcon commands
Phalcon7 DevTools (1.1.1)Available commands:
commands (alias of: list, enumerate)
controller (alias of: create-controller)
model (alias of: create-model)
all-models (alias of: create-all-models)
project (alias of: create-project)
scaffold (alias of: create-scaffold)
migration (alias of: create-migration)
摘自:http://www.myleftstudio.com/reference/tools.html