Fork me on GitHub

load_model

Use load_model() if you want to use a model other than the controller's native model. To load multiple models, use load_models().

<?php
// controllers/venues_controller.php
class VenuesController extends MvcPublicController {
  
  public function show() {
    $this->load_model('Speaker');
    $speakers = $this->Speaker->find();
  }
  
}
?>