开发者

Extend application User_Model with module-specific subclass

开发者 https://www.devze.com 2023-01-11 21:35 出处:网络
In kohana 2.3.4 system load first application, after modules and system. I want to extends User_Model in application with User_Model in modules. How to do that?

In kohana 2.3.4 system load first application, after modules and system. I want to extends User_Model in application with User_Model in modules. How to do that?


Kohana loads:

  1. application
  2. modules
  3. system

I want to extend User_Model in applicati开发者_如何学运维on, with User_Model in modules.


I think that you can't extends user_model (application) with user_model (modules), but you can use another name for your model then extends the user_model.

0

精彩评论

暂无评论...
验证码 换一张
取 消