让 Facebox 在 qcodo/qcube php 框架中工作
我正在使用一个名为 qcodo 的框架(它分叉为 qcubed),它是一个 PHP 框架。
我想使用 Facebox jquery 插件做一个非常简单的弹出窗口。
当有人单击该链接时,将在第 47 行中显示如下。
这是文件: http://github.com/allyforce/AF-upload/blob/master/Templates/profile_activity.tpl.php
<a href="complete_profile_popup.php?allyId=<?= $this->objAllyUser->Id?>" rel="facebox" title="Complete Profile" >Invite as Ally</a><br />
Facebook 安装工作正常,测试它只是打开纯 html 和 php 文件。
我只是希望能够在 Facebox 弹出窗口中呈现工作页面。
但当前的错误是它无法识别该方法,即使它看起来已经被定义了。
更新:根据一项建议,使用了 iFrame,但仍然一无所获:
I am using a framework called qcodo (which forked as qcubed) and is a PHP framework.
I want to do a very simple popup using the Facebox jquery plugin.
When someone clicks on the link and shown below in line 47.
Here is the file: http://github.com/allyforce/AF-upload/blob/master/Templates/profile_activity.tpl.php
<a href="complete_profile_popup.php?allyId=<?= $this->objAllyUser->Id?>" rel="facebox" title="Complete Profile" >Invite as Ally</a><br />
The Facebook installation worked fine, tested it just opening plain html and php files.
I just want to be able to render a working page within the Facebox pop-up.
But the current error is that it cannot recognize the method, even though it appears it has been defined.
UPDATE: Per one suggestion, used iFrame, but still getting nothing:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您应该打印您收到的错误。我会尝试猜测:您是否已将您的方法声明为公开的?在模板中您只能访问公共属性和方法。这是一个非常常见的错误。
You should print the error you get. I will try to guess: have you declared your method as public? In the template you can access only public properties and methods. This is a very common mistake.
此问题/主题正在 http://www.qcodo 进行深入讨论.com/forums/forum.php/3/4007/
This issue/topic is being discussed in depth at http://www.qcodo.com/forums/forum.php/3/4007/