考えてみれば単純なことなのにハマったので備忘録に残します。
ハマった時のケースはModule Aから共通Module(例ではModule B)のデータを表示する際にModule AのViewでModule BのModelをどう呼び出すか、というもの。(そもそも設計云々に問題があるというのは割愛します・・・)

■module Aからmodule BのModelを呼び出す場合。

module Aで

\Module::load('B');

と記述し、Module Bを読み込む。
確認方法は、

$loaded = Module::loaded();
var_dump($loaded);

とすれば、呼び出されていることが確認できます。

Modelでデータを取得する際は、

$persons = B\Model_Xxx::find('all');

というように、namespace(module名)を付ければ呼び出すことができます。

 

・・・何でこんなに悩んだんだろう。。。

 

95 Comments

  1. cialis canadian pharmacy says:

    canadian drug https://pharmacy-online.yolasite.com/

    You reported this adequately.

  2. https://kevasw.webgarden.com/ says:

    cialis generico https://kevasw.webgarden.com/

    Beneficial information. Kudos!

  3. most reliable canadian pharmacies says:

    online pharmacies canada https://62553dced4718.site123.me/

    You suggested it fantastically.

  4. https://site128620615.fo.team/ says:

    online prescriptions without a doctor https://site128620615.fo.team/

    Kudos. I enjoy it.

  5. https://fwervs.gumroad.com/ says:

    cialis lowest price https://fwervs.gumroad.com/

    Nicely put. Thanks.

  6. buy cialis delhi says:

    cialis 5mg prix https://generic-cialis-20-mg.yolasite.com/

    Thanks a lot, Plenty of stuff!

  7. buy cheap cialis no prescription says:

    tadalafil 20 mg https://hemuyrt.livejournal.com/325.html

    Appreciate it, Plenty of forum posts.

  8. https://sehytv.wordpress.com/ says:

    cialis 5 mg https://sehytv.wordpress.com/

    Thank you! A good amount of material!

  9. kertubs.mystrikingly.com says:

    tadalafil https://kertubs.mystrikingly.com/

    Really loads of useful information.

  10. canadian pharmacy cialis says:

    canadian pharmacy no prescription https://online-pharmacies0.yolasite.com/

    Cheers! A good amount of posts!

  11. canadian pharmacies without an rx says:

    top rated online canadian pharmacies https://deiun.flazio.com/

    This is nicely expressed! !

  12. https://kertyun.flazio.com/ says:

    buy cialis https://kertyun.flazio.com/

    Thank you! Loads of advice!

  13. kerbnt.flazio.com says:

    tadalafil generic https://kerbnt.flazio.com/

    With thanks! A lot of knowledge.

  14. canadian online pharmacies says:

    canadian pharmacy no prescription http://ime.nu/cialisonlinei.com

    Truly a lot of excellent knowledge.

  15. gewrt.usluga.me says:

    cialis canada https://gewrt.usluga.me/

    Cheers. Quite a lot of advice.

  16. canadian pharmaceuticals says:

    safe canadian online pharmacies https://site273035107.fo.team/

    Nicely put, Kudos!

  17. site656670376.fo.team says:

    cialis uk https://site656670376.fo.team/

    Wonderful posts, Regards.

  18. https://hertnsd.nethouse.ru/ says:

    cialis 20 mg best price https://hertnsd.nethouse.ru/

    Whoa loads of excellent data!

  19. https://pharmacies.bigcartel.com/ says:

    Cialis tadalafil https://pharmacies.bigcartel.com/

    Effectively expressed without a doubt. .

  20. canadian rx world pharmacy says:

    canadian pharmacy online http://site592154748.fo.team/

    Factor certainly utilized..

  21. asebg.bigcartel.comcanadian-pharmacy says:

    cialis generico online https://asebg.bigcartel.com/canadian-pharmacy

    Helpful write ups. Appreciate it.

Leave a Reply