FOF30\Controller\Controller::setModel PHP Method

setModel() public method

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
return void
    public function setModel($modelName, Model &$model)
    {
        $this->modelInstances[$modelName] = $model;
    }