Let's say I have two controllers like Table1sControllerand Table2sController. With appropriate models: Table1sModel, Table2sModel.
In Table1sControllerI got the following:
$this->Table1sModel->action();
Let's say I want to access some data in Table2sModel.
How can one do something like this in Table1sController? I tried this in Table1sController:
$this->Table2sModel->action();
But I got an error like this:
Undefined property: Table1sController :: $ Table2sModel
source
share