コード例 #1
0
ファイル: View.php プロジェクト: thornberger/empire
 /**
  * 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);
 }
コード例 #2
0
ファイル: Task.php プロジェクト: thornberger/empire
 /**
  * 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);
 }