/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// Import model inside another App::Import('Model', 'Example'); $this->Example = new Example; // add options to paginate the model $this->set( 'items', $this->paginate('Example') ); // using containable $this->Issue->IssuesSerialNumber->Behaviors->attach('Containable'); $items = $this->paginate( 'IssuesSerialNumber' );
Comments
