![](/img/trans.png)
[英]How can I integrate ion_auth library with CodeIgniter 3 HMVC?
[英]How can I integrate ion_auth library with CodeIgniter 3 HMVC on Linux?
我正在使用codeigniter,hmvc和ion_auth編碼基本應用程序。 我已經在應用程序/模塊/用戶中加載了ion_auth。 一切都可以在Windows開發PC上正常運行,但是當應用程序啟動時,托管服務器(linux)上出現錯誤:
Message: Unable to locate the model you have specified: Ion_auth_model
在模塊/用戶/庫/Ion_auth.php中,我嘗試按以下方式加載模型:
$this->load->model('Users/Ion_auth_model', 'ion_auth_model');
模型文件位於modules / Users / models / Ion_auth_model.php中。
我嘗試了許多不同的文件名組合。 我知道Linux區分大小寫。 有什么建議么? 我是否缺少簡單的東西?
首先,您的文件夾名稱必須以小寫字母開頭。 .......將Ion Auth保留在其自己的模塊文件夾中...您的模塊文件夾必須類似於:
modules ∟ home ∟ admin ∟ auth ∟ controllers ∟ models ∟ views ∟ libraries ∟ config ∟ language
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.