Hmvc HMCV如何从其他模块加载模型
大家好。 这里我有一个非常简单的问题 我在Hmvc HMCV如何从其他模块加载模型,hmvc,Hmvc,大家好。 这里我有一个非常简单的问题 我在 modules/guestbook/admin.php 我想从不同的模块加载模型 modules/admin/models/ 此方法: $this->load->model('someModel', 'someModel'); is not working bcz HMVC is looking only in the same module the controller is in or in application/models/
modules/guestbook/admin.php
我想从不同的模块加载模型
modules/admin/models/
此方法:
$this->load->model('someModel', 'someModel'); is not working bcz HMVC is looking only in the same module the controller is in or in application/models/
有人可以向Josh Yudell建议如何使用HMCV实现这一点吗。我试着用
Modules::find,Modules::load Modules::load_file, bt there is no result with it.
提前谢谢。
Josh Yudell从留言簿模块内部调用管理模块怎么样。您不应该直接访问模型。Id建议您为加载提供模块目录的路径。您还没有为您的问题提供您工作的环境 在codeigniter HMVC中,结构更为严格:
Modules::run('admin/get_account_details_model'); or $this->load->module('admin/get_account_details_model');