考えてみれば単純なことなのにハマったので備忘録に残します。
ハマった時のケースは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名)を付ければ呼び出すことができます。

 

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

 

150 Comments

  1. canadianpharmacy.teachable.com says:

    cialis lowest price https://canadianpharmacy.teachable.com/

    You actually mentioned that effectively.

  2. https://hkwerf.micro.blog/ says:

    cialis 5mg prix https://hkwerf.micro.blog/

    With thanks. I value it!

  3. canada drugs online says:

    canadian pharcharmy online https://hub.docker.com/r/dkwer/drugs

    You made your stand pretty clearly.!

  4. https://graph.org/Tadalafil-20mg-08-13 says:

    cialis 20mg prix en pharmacie https://graph.org/Tadalafil-20mg-08-13

    You have made your position quite nicely!.

  5. https://viagraonlineee.wordpress.com/ says:

    cialis without a doctor’s prescription https://viagraonlineee.wordpress.com/

    Incredible lots of helpful knowledge.

  6. https://viagraonline.home.blog/ says:

    cialis 5mg prix https://viagraonline.home.blog/

    Awesome write ups, Many thanks.

  7. buy viagra delhi says:

    Viagra great britain https://viagraonlinee.livejournal.com/492.html

    Whoa many of good info!

  8. onlineviagra.flazio.com says:

    tadalafil tablets https://onlineviagra.flazio.com/

    Kudos. Terrific information.

  9. https://onlineviagra.fo.team/ says:

    buy cialis without a doctor’s prescription https://onlineviagra.fo.team/

    You suggested this terrifically!

  10. 2cocktail says:

    3illustrations

  11. chat gay joven says:

    gay phone chat free no cost https://gaychatspots.com/

  12. gay dirty chat says:

    free gay chat rooms in new york state https://gayphillychat.com/

  13. gay bi chat line says:

    gay massachusetts chat no sign up https://gaymusclechatrooms.com/

  14. gay geek chat says:

    gay phone chat meet locals “welcome to the https://free-gay-sex-chat.com/

  15. stromectol india says:

    stromectol dosage table https://ktqt.ftu.edu.vn/en/question list/order-stromectol-over-the-counter-10/

    You mentioned it perfectly.

  16. stromectol nuzeniec says:

    stromectol posologie https://challonge.com/esapenti

    Appreciate it, Ample write ups!

  17. buy viagra delhi says:

    Interactions for viagra https://challonge.com/citlitigolf

    Kudos. An abundance of tips.

  18. dsdgbvda.zombeek.cz says:

    Tadalafil 20 mg https://dsdgbvda.zombeek.cz/

    Amazing forum posts. Kudos!

  19. https://inflavnena.zombeek.cz/ says:

    Viagra vs viagra vs levitra https://inflavnena.zombeek.cz/

    Whoa plenty of awesome advice!

  20. canadian pharmacy says:

    canadian pharmaceuticals https://supplier.ihrsa.org/profile/421717/0

    Wonderful material. With thanks.

  21. trust pharmacy canada says:

    canadian pharmaceuticals online https://moaamein.nacda.com/profile/422018/0

    Thanks a lot, Lots of information!

  22. canada rx says:

    online pharmacies https://network.myscrs.org/profile/422020/0

    Whoa plenty of good info!

Leave a Reply