我可以将 Code Igniter 与 Concrete5 一起使用吗?

发布于 2024-07-23 05:46:10 字数 156 浏览 4 评论 0原文

我正在构建一个网站,该网站(显然)有一个我想用 Concrete5 驱动的前端公共部分,但它也将有一个我想用 Code Igniter 构建的成员部分。

有谁知道我该怎么做?

我想我可以将 Code Igniter 代码放入子目录中,但是我会遇到任何问题吗?

I am building a site that will (obvisouly) have a front end public portion that I want to drive with Concrete5, but then it will also have a members section that I would like to build with Code Igniter.

Does anyone have any idea how I could do that?

I guess I could just throw the Code Igniter code into a sub directory, but would I run into any issues with that?

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

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

发布评论

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

评论(3

千纸鹤带着心事 2024-07-30 05:46:10

我不明白为什么不。

正如您所建议的,网站上的单独文件夹将是一种解决方案。
(您可能需要调整 .htaccess 文件(如果您正在使用一个文件)以忽略其他 cms/框架

另一种解决方案是拥有单独的子域,
例如 example.com 和members.example.com

i can't see why not.

As you suggested a separate folder on the site would be one solution.
(you might have to tweak the .htaccess file (if you are using one) to ignore the other cms/framework

Another solution would be to have separate subdomains,
eg example.com and members.example.com

旧城空念 2024-07-30 05:46:10

由于 OP 尚未发布,答案是将 .htaccess 规则更改

RewriteBase /

RewriteBase /foo/

:其中 foo 是 index.php 和 CI 所在的子目录。 此 .htaccess 也应该与 CI index.php 位于同一文件夹中。 奇迹般有效。 另外,不要忘记将子目录添加到 base_url 配置设置中。

The answer, since the OP hasn't posted it, is to change the .htaccess rule:

RewriteBase /

to:

RewriteBase /foo/

where foo is your subdirectory that the index.php and CI reside. This .htaccess should also be in the same folder as the CI index.php. Works like a charm. Also don't forget to add the subdirectory to the base_url config setting.

花心好男孩 2024-07-30 05:46:10

我最终使用了 Code Igniter 的子目录。 我必须更改 .htaccess 文件和 apache 的 Mod_Rewrite 规则,以便 Code Igniter“漂亮”URL 正常工作。

如果我记得的话,我稍后会发布代码。

I ended up using a sub directory for Code Igniter. I had to change the .htaccess file and Mod_Rewrite rules for apache in order for the Code Igniter "pretty" URLs to work correctly.

I will post the code later if I remember.

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