BreezingForms Integrator 最终确定代码和 $this->execPieceByName('ff_InitLib');
我已经开始开发 Joomla!项目(我主要是一个 C#/ASP.NET 类型的人)。我正在使用 BreezingForms 并创建了表单,让它们正常工作,但现在我需要在“最终代码”部分中执行一些附加代码。
我需要通过 BreezingForms(FacileForms) API 访问表单元素。这就是我正在做的事情,但它令人窒息:
// load the standard Facile Forms library
$this->execPieceByName('ff_InitLib'); // page breaks here.
// get the name of the uploaded file
$filename = ff_getSubmit('someUploadedFile');
现在我不知道出了什么问题。该页面回发为空白。我不知道如何在 Joomla 中调试它。我目前无法访问服务器进行调试,因此我需要在运行时远程调试(我知道这并不理想)。我的帐户是 Joomla 后端管理员类型。
据我所知,所有插件/模块均已安装。
有什么想法吗?
I've started working on a Joomla! project (I'm mainly a C#/ASP.NET kind a guy). I'm using BreezingForms and have created forms, got them working, but now I need to do some additional code in the "Finalize Code" section.
I need to access form elements via BreezingForms(FacileForms) API. Here's what I'm doing, but it chokes:
// load the standard Facile Forms library
$this->execPieceByName('ff_InitLib'); // page breaks here.
// get the name of the uploaded file
$filename = ff_getSubmit('someUploadedFile');
Now I don't know what goes wrong. The page posts back blank. I'm not sure how to debug this in Joomla. I currently do not have access to the server to debug, so I would need to debug remotely at runtime (not ideal I know). My account is of type Administrator for the Joomla backend.
As far as I know all the plugins/modules are installed.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您在任何 PHP 代码中遇到空白页,则可能是“显示错误”被关闭。您要么想要打开 PHP 显示错误,要么检查错误是否被写入日志文件。这两个设置都可以在 php.ini 中更改,也可以在运行时使用
ini_set()
进行更改。至于调试,您可能需要查看 FirePHP。 FirePHP 有一个 Joomla 专用插件,称为 JFirePHP。我写了一篇关于使用 JFirePHP 的文章,您可以阅读 此处。
If you're getting a blank page in any PHP code, it's likely that "display errors" is turned off. You'll either want to turn PHP display errors on, or check to see if the errors are being written to a log file. Both of these settings can be changed in php.ini or at runtime with
ini_set()
.As for debugging, you might want to take a look at FirePHP. There's a Joomla-specific plugin for FirePHP called JFirePHP. I wrote an article about using JFirePHP which you can read here.