Phalcon Developer Tools 使用说明
https://docs.phalconphp.com/en/3.4/devtools-usage
phalcon中文文档地址:
https://docs.phalconphp.com/en/3.4
Volt模板引擎
https://docs.phalconphp.com/zh/3.4/volt
模型查找
https://docs.phalconphp.com/zh/3.2/db-models#finding-records
composer
创建一个工程
phalcon project xx.youthtribe.com
创建一个控制器
phalcon controller User
{% extends “/layouts/user/user.volt” %}
生成所有数据表模型
phalcon all-models
如何输出model的save错误信息:
$pay_order = new PayOrders(); $pay_order->body = BODY; $pay_order->subject = SUBJECT; $r = $pay_order->save(); if(!$r){ $msgs = $pay_order->getMessages(); foreach ($msgs as $msg ){ echo $msg ."<br>"; } die(); }