我可以将 Code Igniter 与 Concrete5 一起使用吗?
我正在构建一个网站,该网站(显然)有一个我想用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我不明白为什么不。
正如您所建议的,网站上的单独文件夹将是一种解决方案。
(您可能需要调整 .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
由于 OP 尚未发布,答案是将 .htaccess 规则更改
为
:其中
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:
to:
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.我最终使用了 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.