public function actionAddProductsInAgreement($optId) { $data = Costbook::getAll(); $agmntView = new AgreementView($data, $optId, NULL); $view = new MyCustomView(ZurmoDefaultViewUtil::makeStandardViewForCurrentUser($this, $agmntView)); echo $view->render(); }