protected function actionCreateByModel(Agreement $agmnt, $redirectUrl = null) { $agmtRecordView = new AgmntRecordType($this, NULL); $view = new AgrmntRecordModelView(ZurmoDefaultViewUtil::makeStandardViewForCurrentUser($this, $agmtRecordView)); echo $view->render(); }