Using Ion Auth as a separate module in the HMVC structure

前端 未结 6 1352
日久生厌
日久生厌 2020-12-14 13:09

I am interested in using ion auth for a project of mine which is running on the HMVC pattern. The application is written in Codeigniter.

The problem I face is once t

6条回答
  •  渐次进展
    2020-12-14 13:53

    This is what I did following ciuser's guideline but with some changes:

    1. Do a clean install of Codeigniter. Set up config.php, database.php etc.
    2. Install Modular Extension:
      Move third_party/MX to CI/application/third_party.
      Move core/MY_Loader.php and core/MY_Router.php to CI/application/core.
    3. Install Ion Auth:
      Move the following Ion Auth folders to CI/application/modules/auth folder: config, controllers, language, libraries, models.
      Move the files under Ion Auth/views folder to CI/application/modules/auth/views. (Without one extra layer of auth as in Ion Auth.)
      Run Ion Auth sql in database.
    4. Check it at yourbaseurl/index.php/auth.

提交回复
热议问题