将 Codeigniter 应用程序移植到 PyroCMS

发布于 2024-11-16 15:58:05 字数 148 浏览 2 评论 0原文

我正在 Codeigniter 中开发一个 Web 应用程序。我想将我的应用程序的功能与 CMS 集成,以便站点管理员可以轻松更新站点(关于页面、博客等)。使用 PyroCMS 或其他基于 Codeigniter 的 CMS 可以轻松完成此操作吗?我需要彻底重组我现有的应用程序吗?

I'm working on a web application in Codeigniter. I'd like to integrate the functionality of my application with a CMS so that site admins can easily update the site (about pages, blog, etc). Is this easily done with PyroCMS or another Codeigniter-based CMS? Will I need to drastically restructure my existing app?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

美煞众生 2024-11-23 15:58:05

根据我自己在 Expression Engine 中集成应用程序的经验,我可以说 CMS 改变了您通常使用 CI 的方式。因此,请做好做出一些调整的准备。每个 CMS 都有其优点和差异。不过这应该不是什么大问题。

如果您想使用 PyroCms,请先查看此文档:
http://www.pyrocms.com/docs/2.0/developers/creating -custom-modules

如果您正在寻找替代方案,有很多。似乎几乎所有使用 CI 的人都已经创造了自己的 CI。

以下是一些:

另外请务必查看 CI Bonfire,它不是 CMS,但确实有帮助当您使用基本管理包装器启动新项目时,这有时比 CMS 更有用:

http://cibonfire.com /

From my own experience integrating an app inside Expression Engine I can say that a CMS changes the way you usually work with CI. So be prepared to make some adjustments. Every CMS will come with it's perks and differences. It shouldn't be a big problem though.

If you want to use PyroCms take a look at this doc first:
http://www.pyrocms.com/docs/2.0/developers/creating-custom-modules

If you're looking for alternatives, there are a lot. It seems almost everyone working with CI has made it's own.

Here are a few:

Also make sure you check out CI Bonfire, it's not a CMS but does help you when you start up a new project with a basic admin wrapper, which is sometimes more useful than a CMS:

http://cibonfire.com/

少女的英雄梦 2024-11-23 15:58:05

这是一年前回答的,而且回答得很好,但我的支持人员向我转发了几封用户询问此页面的电子邮件。

当人们谈论内容管理系统时,他们经常突然想到严格的后端,应用程序必须遵循特定的规则。虽然 PyroCMS 当然有一些约定,但您可以在前端或后端自由构建模块,就像它们是 CodeIgniter 应用程序一样。

如果您想使用模型、控制器、视图、REST API、SOAP,无论如何,您都可以这样做。

但是,我们还提供了一些很棒的工具来快速构建模块。讨厌写 CRUD?好吧,别打扰。使用 Streams API 您可以利用我们使用“自定义数据”系统中的构建来为您打造大量界面。

在您的应用程序中使用 PyroCMS 当然不是“将其侵入 CMS”,这正是它的构建用途。

如果您有现有的应用程序,虽然您无法“将 PyroCMS 放入您的应用程序中”,但您当然可以将您的应用程序转换为 模块 足够简单。

This was answered a year ago and answered well, but my support guy has forwarded me a few emails from users asking about this page.

When people talk about Content Management Systems they often suddenly get the idea of rigid backends where you applications have to follow specific rules. While PyroCMS certainly has a few conventions you are free to build your modules just like they are a CodeIgniter application, on the frontend or the backend.

If you want to use Models, Controllers, Views, REST API's, SOAP, whatever the hell, then you can do that.

But, we also offer some awesome tools to make building modules CRAZY-fast. Hate writing CRUD? Well don't bother. Using the Streams API you can leverage the build in "Custom Data" system we use to rock out chunks of interface for you.

Using PyroCMS for your application is certainly not "hacking it into a CMS", this is the exact use-case it was built for.

If you have an existing application, while you can't "put PyroCMS into your app" you can certainly convert your application to a module easy enough.

浅紫色的梦幻 2024-11-23 15:58:05

最简单的方法是围绕 CMS 数据库编写模型。将 CMS 托管在子域中,并为您的管理员提供身份验证。 (admin.mysite.com) 或其他东西,然后使用相同的数据库为您的站点的前端提供支持。

  • 这是最好的方法吗?可能不是。
  • 它会起作用吗? 是的。

您可能会发现很难垂直扩展和扩展如果您依赖第三方 CMS 进行数据输入和管理,请添加新功能后端。

The simplest way of doing it is to write your models around the CMS' database. Host the CMS at a subdomain with authentication for your admins. (admin.mysite.com) or something and then use the same database to power your front-end for your site.

  • Is it the best approach? Probably not.
  • Will it work? Yes.

You will probably find it hard to expand vertically & add new features if you're relying on a 3rd party CMS for data entry & backend.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文