我可以将 Zend-Framework 驱动的 Web 应用程序集成到 wordpress 站点中吗? [英] Can I integrate a Zend-Framework powered web application into a wordpress site?

查看:30
本文介绍了我可以将 Zend-Framework 驱动的 Web 应用程序集成到 wordpress 站点中吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个项目,我希望能够在一个页面上调用 wp_list_pages(),该页面还使用 Zend 框架为一些复杂的界面提供支持,管理 wordpress 之外的自定义数据.

I have a project in which I want to be able to call wp_list_pages() on a page that also uses the Zend Framework to power some complex interfaces manages custom data outside of wordpress.

如果用户尚未使用适当的授权级别登录,此页面还应将用户重定向到 wordpress 登录屏幕.

This page should also redirect the user to the wordpress login screen if they're not already logged in with the appropriate level of authorization.

这将如何在高层次上工作,即我是否需要编辑 wordpress 引导文件以有条件地实现基于特定 URL 或其他内容的自定义界面,但仍包含某些文件以便能够调用 wp_list_pages()那个自定义界面?

How would this work at a high level, i.e. do I need to edit the wordpress bootstrap file to conditionally implement the custom interface based on a specific URL or something, but still include certain files to be able to call wp_list_pages() on that custom interface?

推荐答案

我想您可以做到这一点,只需将框架导入您需要的页面即可.我不知道 Zend 是如何工作的,但请检查路径以了解放置目录的位置,以便 Zend 找到它们.正如我所说,我想您可以这样做,只需进行试验并告诉我们它是如何进行的!

I guess you could do that, just import the framework into the one page you need it for. I don't know how Zend works, but check the paths as to where to put your directories so that Zend finds them.As I said I guess you could do that, just experiment and tell us how it went!

当心函数和/或变量的名称冲突,这应该不是来自 WordPress 和 Zend 等流行产品的大问题......(理论上应该编码良好)

Beware of name conflicts for functions and/or variables, this shouldn't be much of a problem coming from such popular products as WordPress and Zend though... (which should be theoretically well coded)

这篇关于我可以将 Zend-Framework 驱动的 Web 应用程序集成到 wordpress 站点中吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆