you can now pass an optional model instance to Gateway::render_view($request, $model);  This is useful in a sb_Magic_Model
you can now pass an optional model instance to Gateway::render_view($request, $model);  This is useful in a sb_Magic_Model

e.g.

public function some_method($arg1, $arg2){
	//do something with args

	return Gateway::render_view('/some/view', $this);
}

then the view has it's ->model property set to the model. for easy rendering

e.g.

Hello <?=$this->model->name;?>

surebert/webapp-basic,surebert/webapp-basic