FOF30\Controller\Controller::setModel PHP Méthode

setModel() public méthode

Pushes a named model to the Controller
public setModel ( string $modelName, Model &$model ) : void
$modelName string The name of the Model
$model FOF30\Model\Model The actual Model object to push
Résultat void
    public function setModel($modelName, Model &$model)
    {
        $this->modelInstances[$modelName] = $model;
    }