/** * Returns a Model by name. * * This method redirects to the controller to load a model. If the model has already been * loaded, the cached model is used. * * @param string $name the model name in lowercase letters */ protected function getModel($name) { return $this->controller->getModel($name); }
/** * Returns a model. * * @param string $name the name of the model * @return Model the model * @throws ClassNotFoundException if the model could not be loaded */ public function getModel($name) { return $this->controller->getModel($name); }