问题标签 [flightphp]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
1203 浏览

php - 如何在飞行php框架上使用mysqli

Flight php 文档说我们如何使用 PDO 连接到数据库。例如

但是,我们如何在 FlightPHP 中使用 MySQLi?


如果我用 mysqli 替换 PDO,我会收到此错误


0 投票
0 回答
20 浏览

flightphp - 没有在端点上收到航班警报

我试图使用 flightXML 功能来接收来自 flightaware 的警报。

我做的一切都是正确的。我已经设置了一个端点网络挂钩,所有测试都成功运行。当我运行 GetAlerts 函数时,我得到了所有警报的列表作为设置,这是完美的。我收到从https://flightaware.com/commercial/flightxml/send.rvt发送的测试通知,但没有一个使用 webhook 发送到您的服务器。

请让我知道我错过了什么。

谢谢。

警报编号:30728968

0 投票
0 回答
77 浏览

php - Use named placeholders in PHP ActiveRecord

I'm working on a API with FlightPHP and PHPActiveRecord that returns an array of Reports optionally filtered through url query string parameters.

The method build_options creates the array with all query options, in this case the WHERE clauses deleting those columns not allowed and ignoring not passed parameters.

This function creates a WHERE clause like:

but it seems PHPActiveRecord does not accept named placeholders. The only issue in their GitHub asking about this is from 2010 and was closed.

Is there any other way to elegantly filter the query with optional parameters?

- EDIT -

I've worked on a workaround with positional placeholders that works without named placeholders. I still think a version with named placeholder looks cleaner and more understandable.

0 投票
1 回答
43 浏览

php - 用 Plates 替换 FlightPHP 中的模板引擎

FlightPHP 文档概述了如何将模板引擎切换到 Smarty,但我该如何切换到 Plates?我已经通过作曲家添加了 Plates 并自动加载了它。

从自定义视图部分:https ://flightphp.com/learn#views

我怎样才能从这里添加 Plates 引擎? https://platesphp.com/engine/overview/