Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Model1まったく接続されていないモデルがありますが、必要なデータがいくつかあるModel2ため、そのデータにアクセスする必要がありますModel2Controller1Model2
Model1
Model2
Controller1
これはケーキで可能ですか?もしそうなら、どのように?
モデルをコントローラーの $uses プロパティに追加します。次に、 $this->MyModel によってコントローラーからモデルにアクセスできます