Codeigniter 运行多个应用程序 [英] Codeigniter Run multiple application
问题描述
我无法使用相同的 codeigniter 安装来处理两个应用程序(管理员和客户端).
I m not having luck working with two applications (admin and client) with same installation of the codeigniter.
我参考了很多教程并做到了
I referred to many tutorials and did
- 我在应用程序文件夹中创建了子文件夹admin",并将所有子目录剪切并粘贴到其中.
我将 admin 文件夹复制并粘贴到应用程序文件夹中并将其重命名为客户端"
- I created subfolder "admin" inside application folder and cut and pasted all subdirectories into it.
I copied and pasted admin folder inside application folder and renamed it "client"
在主 index.php 中,我将应用程序文件夹路径设置为application/admin".但这仅适用于管理部分,要运行客户端,我必须在 index.php 中再次更改应用程序文件夹路径.这样我就不能同时运行管理员和客户端.
and in main index.php I set application folder path to "application/admin". But this works only for admin section, and to run client I have to change application folder path again in index.php. This way I cannot run both admin and client simultaneously.
请帮帮我.
谢谢
推荐答案
我找到了更好解释的 3 种方法来完成它.我更喜欢第二个
I found a better explained 3 approaches to get it done. I preferred the 2nd one
http://philsturgeon.co.uk/blog/2009/07/Create-an-Admin-panel-with-CodeIgniter
这篇关于Codeigniter 运行多个应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!