Codeigniter运行多个应用程序 [英] Codeigniter Run multiple application

查看:154
本文介绍了Codeigniter运行多个应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我没有运气工作与两个应用程序(管理员和客户端)与相同的安装的codeigniter。

I m not having luck working with two applications (admin and client) with same installation of the codeigniter.

我参考了许多教程,并


  • 我在应用程序文件夹中创建了子文件夹admin,并将所有子目录剪切并粘贴到其中。

  • 我在应用程序文件夹中复制并粘贴了管理文件夹,并将其重命名为client

  • 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 / 。但这只适用于管理部分,并运行客户端我必须在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屋!

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