Separate Admin and Front in codeigniter

后端 未结 3 1770
予麋鹿
予麋鹿 2020-12-02 19:11

What is the best way to separate admin and front-end for a website in codeigniter where as I was to use all libraries, models, helpers etc. in common, but only controllers a

3条回答
  •  -上瘾入骨i
    2020-12-02 20:01

    You all can find complete solution over here, https://github.com/bhuban/modular

    Module separation for admin and front-end using HMVC and template separation using template libraries

    I am using two third party libraries, you can find it in zip file.

    1. HMVC for modular developed by wiredesignz
    2. Template engine for templating by Phil Sturgeon

    Just unzip it into your webserver root directory and run

    localhost/modular for front-end
    

    and

    localhost/modular/admin for back-end
    

    application/back-modules, it is for the back-end modules

    application/front-modules, it is for the front-end modules

    similarly templates/admin for the back-end templates templates/front for the front-end templates

    themes/admin for the back-end themes themes/front for the front-end themes

    Nothing hacked in original code just configured using config.php and index.php

提交回复
热议问题