You can use the following code to export a model that is not associated with the current model:
App::import('Model', 'MyModel'); $my_model = new MyModel();
If MyModel
is associated with the current model, you can use a chain, for example. $this->SomeModel->MyModel
source share