dongyinting3179 2012-02-01 16:42
浏览 11
已采纳

我可以在同一个应用程序中处理Codiegnitor管理员和主要网站吗?

actually i am looking to handle my website/admin panel withing same application. so i want to know that is that possible?

i means structure something like this
http://www.mysite.com
and for admin
http://www.mysite.com/admin

so this all i need to handle withing one application of codeignitor. i don't want two codeignitor installation for this purpose.

  • 写回答

2条回答 默认 最新

  • dongtangjie0495 2012-02-01 16:45
    关注

    Sure, you can, see the section at CI docs which says:

    Running Multiple Applications with one CodeIgniter Installation

    You can also create separate folders for your controllers, models and views like:

    +controllers
        +front (main site controllers will go here)
        +admin (admin controllers will go here)
    
    +models
        +front (main site models will go here)
        +admin (admin models will go here)
    
    +views
        +front (main site views will go here)
        +admin (admin views will go here)
    

    See the section:

    Organizing Your Controllers into Sub-folders

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥20 搭建三相栅极电路后高侧浮动地VS存在电容特性
  • ¥20 云卓h12pro 数传问题
  • ¥20 请问有人知道怎么用工艺库里面的sdb文件通过virtuoso导出来library里面每个cell的symbol吗?
  • ¥20 海思 nnie 编译 报错
  • ¥50 决策面并仿真,要求有仿真结果图
  • ¥15 springboot接入微信支付SDK
  • ¥50 大区域的遥感影像匹配 怎么做啊
  • ¥15 求解答:pytorch跑yolov8神经网络受挫
  • ¥20 Js代码报错问题不知道怎么解决
  • ¥15 gojs 点击按钮node的position位置进行改变,再次点击回到原来的位置